hcp-ansible/roles/hashistack/tasks/main.yml
Bertrand Lanson ff66fe22ae
All checks were successful
development / Check commit compliance (push) Successful in 27s
feat(hashistack): move variable loading to specific role
2024-07-22 23:04:05 +02:00

33 lines
1.0 KiB
YAML

---
# task/main file for hashi_vars
- name: "Variables | Load global variables"
ansible.builtin.include_tasks: load_global_vars.yml
when: not hashistack_only_load_credentials
- name: "Variables | Load credentials variables"
ansible.builtin.include_tasks: load_credentials_vars.yml
- name: "Variables | Load group specific variables"
ansible.builtin.include_tasks: load_group_vars.yml
when: not hashistack_only_load_credentials
- name: "Variables | Load host specific variables"
ansible.builtin.include_tasks: load_host_vars.yml
when: not hashistack_only_load_credentials
- name: "Ensure remote directories exists"
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: root
group: root
mode: 0755
loop:
- "{{ hashistack_remote_config_dir }}"
- "{{ hashistack_remote_log_dir }}"
when: not hashistack_only_load_credentials
- name: "Variables | Load custom CA certificates"
ansible.builtin.include_tasks: load_ca_certificates.yml
when: not hashistack_only_load_credentials