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-04-06 21:47:35 +00:00
|
|
|
tags:
|
|
|
|
- always
|
2024-01-02 22:25:59 +00:00
|
|
|
|
2024-03-17 18:05:02 +00:00
|
|
|
- name: "Deploy Consul Control Plane"
|
2024-03-13 22:27:12 +00:00
|
|
|
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-17 18:05:02 +00:00
|
|
|
- name: "Deploy Consul Agents"
|
|
|
|
ansible.builtin.include_role:
|
2024-05-16 15:25:41 +00:00
|
|
|
name: ednz_cloud.hashicorp_consul
|
2024-03-17 18:05:02 +00:00
|
|
|
when:
|
|
|
|
- enable_consul | bool
|
|
|
|
- "'consul_agents' in group_names"
|
|
|
|
tags:
|
|
|
|
- consul
|
|
|
|
|
2024-04-01 21:59:48 +00:00
|
|
|
- name: "Deploy Haproxy & Keepalived"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: tasks/haproxy/haproxy_deploy.yml
|
|
|
|
when:
|
|
|
|
- enable_haproxy | bool
|
|
|
|
- "'haproxy_servers' in group_names"
|
|
|
|
tags:
|
|
|
|
- haproxy
|
|
|
|
|
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
|