Homelab/utils/updateNomadConfig.yml

16 lines
360 B
YAML
Raw Normal View History

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