2023-09-18 17:03:08 +02:00
|
|
|
---
|
2023-09-21 09:30:39 +02:00
|
|
|
- name: clean nomad alpine distribution config
|
|
|
|
file:
|
|
|
|
state: absent
|
|
|
|
path: /etc/nomad.d/server.hcl
|
|
|
|
|
2023-09-18 17:03:08 +02:00
|
|
|
- name: setup nomad server/worker config
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "nomad.hcl.j2"
|
|
|
|
dest: "{{ nomad_etc_dir }}/nomad.hcl"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0660
|
|
|
|
become: true
|