hcp-ansible/playbooks/tasks/nomad/nomad_deploy.yml

20 lines
438 B
YAML
Raw Permalink Normal View History

---
- name: "Nomad"
block:
- name: "Deploy Nomad Control Plane"
ansible.builtin.import_tasks:
file: nomad_control_plane.yml
when:
2024-08-17 12:09:24 +00:00
- nomad_enable_server
tags:
- nomad_servers
- name: "Deploy Nomad Clients"
ansible.builtin.import_tasks:
file: nomad_clients.yml
when:
2024-08-17 12:09:24 +00:00
- nomad_enable_client
- not nomad_enable_server
tags:
- nomad_clients