diff --git a/playbooks/consul.yml b/playbooks/consul.yml new file mode 100644 index 0000000..df8c639 --- /dev/null +++ b/playbooks/consul.yml @@ -0,0 +1,4 @@ +- hosts: consul + roles: + - role: ansible-consul + become: true diff --git a/production b/production index 8a73e62..8eeabca 100644 --- a/production +++ b/production @@ -20,3 +20,8 @@ corwin [wireguard] corwin oscar + +[consul:children] +server +VPS +dhcp diff --git a/roles/requirements.yml b/roles/requirements.yml index a7598b0..d7067f5 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -91,3 +91,5 @@ scm: git - src: https://github.com/githubixx/ansible-role-wireguard.git scm: git +- src: gitea@git.ducamps.win:ansible-roles/ansible-consul.git + scm: git diff --git a/site.yml b/site.yml index 12da9e1..88643df 100644 --- a/site.yml +++ b/site.yml @@ -1,6 +1,7 @@ --- - import_playbook: playbooks/global.yml - import_playbook: playbooks/wireguard.yml +- import_playbook: playbooks/consul.yml - import_playbook: playbooks/music-player.yml - import_playbook: playbooks/server.yml - import_playbook: playbooks/build.yml diff --git a/staging b/staging index 0d58d48..3231228 100644 --- a/staging +++ b/staging @@ -11,7 +11,7 @@ VMDS VMAS-BUILD [dhcp] -VMAS-BUILD ansible_host=192.168.1.53 +VMAS-BUILD [server:children] VMServer @@ -20,3 +20,6 @@ VMServer VMAS-HML [Default] + +[consul] +VMAS-BUILD