--- - name: Deploy nomad configuration template: src: nomad.hcl.j2 dest: "{{ nomad_root_dir }}/etc/nomad.hcl" owner: root group: "{{ nomad_user }}" mode: 0640 validate: nomad config validate %s notify: restart nomad tags: nomad