Bertrand Lanson
7f8d8654a4
All checks were successful
development / Check commit compliance (push) Successful in 6s
This allows operators to target specific groups when deploying using the --tags flag of ansible. You can, for now, target consul, consul_servers, consul_agents, nomad, nomad_servers, nomad_clients, vault and haproxy
20 lines
483 B
YAML
20 lines
483 B
YAML
---
|
|
- name: "Consul"
|
|
block:
|
|
- name: "Deploy Consul Control Plane"
|
|
ansible.builtin.import_tasks:
|
|
file: consul_control_plane.yml
|
|
when:
|
|
- "'consul_servers' in group_names"
|
|
tags:
|
|
- consul_servers
|
|
|
|
- name: "Deploy Consul Agents"
|
|
ansible.builtin.import_tasks:
|
|
file: consul_agents.yml
|
|
when:
|
|
- "'consul_agents' in group_names"
|
|
- "'consul_servers' not in group_names"
|
|
tags:
|
|
- consul_agents
|