- name: Update consul config on alpine linux hosts: all tasks: - name: Update nomad config ansible.builtin.copy: mode: preserve src: ./host_config/nomad.hcl dest: /etc/nomad.d/server.hcl - name: Restart nomad service ansible.builtin.service: name: nomad state: restarted enabled: true