2024-06-25 13:16:42 +00:00
|
|
|
---
|
|
|
|
- name: "Nomad"
|
|
|
|
block:
|
2024-07-14 14:15:21 +00:00
|
|
|
- name: "Deploy Nomad Control Plane"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: nomad_control_plane.yml
|
2024-06-25 13:16:42 +00:00
|
|
|
when:
|
2024-08-17 12:09:24 +00:00
|
|
|
- nomad_enable_server
|
2024-07-14 14:15:21 +00:00
|
|
|
tags:
|
|
|
|
- nomad_servers
|
2024-06-25 13:16:42 +00:00
|
|
|
|
2024-07-14 14:15:21 +00:00
|
|
|
- name: "Deploy Nomad Clients"
|
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: nomad_clients.yml
|
2024-07-11 21:27:44 +00:00
|
|
|
when:
|
2024-08-17 12:09:24 +00:00
|
|
|
- nomad_enable_client
|
|
|
|
- not nomad_enable_server
|
2024-07-14 14:15:21 +00:00
|
|
|
tags:
|
|
|
|
- nomad_clients
|