ansible-hashistack/roles/nomad/tasks/setup_nomad_configs.yml

15 lines
309 B
YAML

---
- name: clean nomad alpine distribution config
file:
state: absent
path: /etc/nomad.d/server.hcl
- 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