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
|
||||
15
utils/updateNomadConfig.yml
Normal file
15
utils/updateNomadConfig.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- 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
|
||||
15
utils/updateTraefikConfig.yml
Normal file
15
utils/updateTraefikConfig.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- name: Update consul config on alpine linux
|
||||
hosts: all
|
||||
|
||||
tasks:
|
||||
- name: Update traefik config
|
||||
ansible.builtin.copy:
|
||||
mode: preserve
|
||||
src: ./host_config/traefik.yml
|
||||
dest: /etc/traefik/traefik.yaml # Alpine default config is yaml
|
||||
|
||||
- name: Restart traefik service
|
||||
ansible.builtin.service:
|
||||
name: traefik
|
||||
state: restarted
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user