hcp-ansible/playbooks/tasks/nomad/nomad_deploy.yml
Bertrand Lanson bb77c38d3d
All checks were successful
development / Check commit compliance (push) Successful in 4s
fix: remove duplicate tags for nomad tasks
2024-08-26 23:14:35 +02:00

20 lines
438 B
YAML

---
- name: "Nomad"
block:
- name: "Deploy Nomad Control Plane"
ansible.builtin.import_tasks:
file: nomad_control_plane.yml
when:
- nomad_enable_server
tags:
- nomad_servers
- name: "Deploy Nomad Clients"
ansible.builtin.import_tasks:
file: nomad_clients.yml
when:
- nomad_enable_client
- not nomad_enable_server
tags:
- nomad_clients