hcp-ansible/playbooks/deploy.yml
Bertrand Lanson dc096e497d
All checks were successful
development / Check commit compliance (push) Successful in 32s
pull-requests-open / Check commit compliance (pull_request) Successful in 33s
feat: redirect to wiki and add assets
2024-08-29 20:13:45 +02:00

59 lines
1.3 KiB
YAML

---
# hashistack deployment playbook
- name: "Deploy"
hosts: "{{ target | default('all, !deployment') }}"
strategy: linear
gather_facts: true
any_errors_fatal: true
become: true
tasks:
- name: "Import variables"
ansible.builtin.include_role:
name: ednz_cloud.hashistack.hashistack
apply:
tags:
- always
tags:
- always
# Consul nodes deployment
- name: "Deploy Consul"
tags:
- consul
- consul_servers
- consul_agents
when:
- enable_consul | bool
ansible.builtin.include_tasks:
file: tasks/consul/consul_deploy.yml
apply:
tags:
- consul
# Vault nodes deployment
- name: "Deploy Vault"
tags:
- vault
- vault_servers
when:
- enable_vault | bool
ansible.builtin.include_tasks:
file: tasks/vault/vault_deploy.yml
apply:
tags:
- vault
# Nomad nodes deployment
- name: "Deploy Nomad"
tags:
- nomad
- nomad_servers
- nomad_clients
when:
- enable_nomad | bool
ansible.builtin.include_tasks:
file: tasks/nomad/nomad_deploy.yml
apply:
tags:
- nomad