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-07-14 14:15:21 +00:00
|
|
|
- "'nomad_servers' in group_names"
|
|
|
|
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-07-14 14:15:21 +00:00
|
|
|
- "'nomad_clients' in group_names"
|
|
|
|
- "'nomad_servers' not in group_names"
|
|
|
|
tags:
|
|
|
|
- nomad_clients
|