Add Host Config Files and Update Utility Playbooks

This commit is contained in:
2024-02-06 12:38:01 -08:00
parent 4351c6803b
commit 41579e2771
6 changed files with 154 additions and 0 deletions

View 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

View 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

View 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