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

15 lines
309 B
YAML
Raw Normal View History

2023-09-18 17:03:08 +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