hcp-ansible/playbooks/tasks/consul/consul_deploy.yml

20 lines
483 B
YAML
Raw Permalink Normal View History

---
- 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