Add Host Config Files and Update Utility Playbooks
This commit is contained in:
15
utils/updateConsulConfig.yml
Normal file
15
utils/updateConsulConfig.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user