feat/major-revamp #11

Merged
lanson merged 42 commits from fix/various into main 2024-08-17 14:54:28 +00:00
4 changed files with 15 additions and 3 deletions
Showing only changes of commit a574caac26 - Show all commits

View File

@ -23,7 +23,6 @@
owner: root owner: root
group: root group: root
mode: 0755 mode: 0755
recurse: yes
loop: loop:
- "{{ hashistack_remote_config_dir }}" - "{{ hashistack_remote_config_dir }}"
- "{{ hashistack_remote_data_dir }}" - "{{ hashistack_remote_data_dir }}"
@ -52,3 +51,8 @@
when: when:
- enable_nomad | bool - enable_nomad | bool
- "('nomad_servers' in group_names) or ('nomad_clients' in group_names)" - "('nomad_servers' in group_names) or ('nomad_clients' in group_names)"
# - name: "Print all config"
# ansible.builtin.debug:
# msg: "{{ hostvars[inventory_hostname] }}"
#
# - fail:

View File

@ -121,7 +121,6 @@
owner: root owner: root
group: root group: root
mode: 0755 mode: 0755
recurse: yes
loop: loop:
- "{{ hashistack_remote_config_dir }}" - "{{ hashistack_remote_config_dir }}"
- "{{ hashistack_remote_data_dir }}" - "{{ hashistack_remote_data_dir }}"

View File

@ -30,10 +30,12 @@
mode: 0644 mode: 0644
loop: "{{ _hashistack_cacert_files.files }}" loop: "{{ _hashistack_cacert_files.files }}"
register: _hashistack_copied_ca register: _hashistack_copied_ca
when: not _hashistack_cacert_files.skipped | default(False)
- name: "Copy and update trust store" - name: "Copy and update trust store"
when: not _hashistack_copied_ca.skipped | default(False)
block: block:
- name: "Copy ca certificates to /usr/loca/share/ca-certificates" - name: "Copy ca certificates to /usr/local/share/ca-certificates"
ansible.builtin.file: ansible.builtin.file:
state: link state: link
src: "{{ item.dest }}" src: "{{ item.dest }}"

View File

@ -1,4 +1,11 @@
--- ---
- name: "Include all default variables"
ansible.builtin.include_vars:
dir: "../../group_vars/all"
depth: 1
extensions: ["yml"]
delegate_to: localhost
- name: "Stat global configuration file" - name: "Stat global configuration file"
ansible.builtin.stat: ansible.builtin.stat:
path: "{{ configuration_directory }}/{{ configuration_global_vars_file }}" path: "{{ configuration_directory }}/{{ configuration_global_vars_file }}"