hcp-ansible/roles/hashistack/tasks/main.yml

33 lines
1.0 KiB
YAML
Raw Normal View History

---
2024-08-03 08:56:12 +00:00
# task/main file for hashistack
- 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