Homelab/utils/updateConsulConfig.yml

16 lines
361 B
YAML

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