2023-12-30 14:54:37 +00:00
|
|
|
---
|
|
|
|
# hashistack variable injection playbook
|
2024-01-02 22:25:59 +00:00
|
|
|
- name: "Load global variables"
|
2024-05-03 20:30:40 +00:00
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: misc/load_global_vars.yml
|
2024-01-02 22:25:59 +00:00
|
|
|
|
2024-05-03 20:30:40 +00:00
|
|
|
- name: "Load credentials variables"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: misc/load_credentials_vars.yml
|
2024-01-02 20:11:32 +00:00
|
|
|
|
2024-01-02 22:25:59 +00:00
|
|
|
- name: "Load group specific variables"
|
2024-05-03 20:30:40 +00:00
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: misc/load_group_vars.yml
|
2023-12-30 14:54:37 +00:00
|
|
|
|
2024-01-03 16:38:09 +00:00
|
|
|
- name: "Load host specific variables"
|
2024-05-03 20:30:40 +00:00
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: misc/load_host_vars.yml
|
2024-01-02 22:25:59 +00:00
|
|
|
|
2024-04-06 21:47:35 +00:00
|
|
|
- name: "Ensure remote directories exists"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
recurse: yes
|
|
|
|
loop:
|
|
|
|
- "{{ hashistack_remote_config_dir }}"
|
|
|
|
- "{{ hashistack_remote_data_dir }}"
|
|
|
|
|
|
|
|
- name: "Load custom CA certificates"
|
2024-05-03 20:30:40 +00:00
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: misc/load_ca_certificates.yml
|
2024-04-06 21:47:35 +00:00
|
|
|
|
2024-01-25 21:40:44 +00:00
|
|
|
- name: "Merge consul configurations"
|
|
|
|
ansible.builtin.import_tasks:
|
2024-03-13 22:27:12 +00:00
|
|
|
file: "consul/consul_vars.yml"
|
2024-01-25 21:40:44 +00:00
|
|
|
when:
|
|
|
|
- enable_consul | bool
|
2024-03-17 18:05:02 +00:00
|
|
|
- "('consul_servers' in group_names) or ('consul_agents' in group_names)"
|
2024-01-25 21:40:44 +00:00
|
|
|
|
2024-01-05 22:58:30 +00:00
|
|
|
- name: "Merge vault configurations"
|
|
|
|
ansible.builtin.import_tasks:
|
2024-03-13 22:27:12 +00:00
|
|
|
file: "vault/vault_vars.yml"
|
2024-01-05 22:58:30 +00:00
|
|
|
when:
|
|
|
|
- enable_vault | bool
|
|
|
|
- "'vault_servers' in group_names"
|