2023-12-15 17:45:58 +00:00
|
|
|
---
|
|
|
|
# hashistack deployment playbook
|
|
|
|
- name: "Deploy"
|
|
|
|
hosts: all
|
2024-01-04 21:09:49 +00:00
|
|
|
strategy: linear
|
2023-12-15 17:45:58 +00:00
|
|
|
gather_facts: true
|
2023-12-24 17:09:08 +00:00
|
|
|
become: true
|
2023-12-15 17:45:58 +00:00
|
|
|
tasks:
|
2024-01-02 22:25:59 +00:00
|
|
|
- name: "Import variables"
|
|
|
|
ansible.builtin.import_tasks:
|
2024-01-04 21:09:49 +00:00
|
|
|
file: tasks/load_vars.yml
|
2024-01-02 22:25:59 +00:00
|
|
|
|
2024-03-13 22:27:12 +00:00
|
|
|
- name: "Deploy Consul"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: tasks/consul/consul_deploy.yml
|
2024-01-25 21:40:44 +00:00
|
|
|
when:
|
|
|
|
- enable_consul | bool
|
|
|
|
- "'consul_servers' in group_names"
|
|
|
|
tags:
|
|
|
|
- consul
|
2024-03-12 23:02:14 +00:00
|
|
|
|
2024-03-13 22:27:12 +00:00
|
|
|
- name: "Deploy Vault"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: tasks/vault/vault_deploy.yml
|
2024-01-04 21:09:49 +00:00
|
|
|
when:
|
|
|
|
- enable_vault | bool
|
|
|
|
- "'vault_servers' in group_names"
|
2023-12-30 14:54:37 +00:00
|
|
|
tags:
|
|
|
|
- vault
|