2024-02-06 20:38:01 +00:00
|
|
|
- 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
|
2024-02-06 20:38:01 +00:00
|
|
|
dest: /etc/nomad.d/server.hcl
|
|
|
|
|
|
|
|
- name: Restart nomad service
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: nomad
|
|
|
|
state: restarted
|
|
|
|
enabled: true
|