--- - 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