aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays/wireguard-vs0.yml
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2020-12-12 18:49:11 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2020-12-12 18:49:11 +0100
commit4083f32156c5df71cb6ea370a411e152c8a67b8b (patch)
tree424d6d61719b3471d13c196b83b468d0f4708aff /ansible/plays/wireguard-vs0.yml
parent39be15a53f52c536e89aee22342b217344f5597c (diff)
downloadinfra-4083f32156c5df71cb6ea370a411e152c8a67b8b.tar.gz
infra-4083f32156c5df71cb6ea370a411e152c8a67b8b.tar.bz2
infra-4083f32156c5df71cb6ea370a411e152c8a67b8b.tar.xz
infra-4083f32156c5df71cb6ea370a411e152c8a67b8b.zip
vs0 += arius.
Diffstat (limited to 'ansible/plays/wireguard-vs0.yml')
-rw-r--r--ansible/plays/wireguard-vs0.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/plays/wireguard-vs0.yml b/ansible/plays/wireguard-vs0.yml
index 079e373..a9a108b 100644
--- a/ansible/plays/wireguard-vs0.yml
+++ b/ansible/plays/wireguard-vs0.yml
@@ -1,4 +1,5 @@
- hosts:
+ - arius
- akili
- birgitte
roles:
@@ -20,6 +21,10 @@
address: 192.168.137.3/24
network: 10.137.3.0
prefix: 24
+ arius:
+ address: 192.168.137.103/24
+ network: 10.137.103.0
+ prefix: 24
akili:
address: 192.168.137.104/24
network: 10.137.104.0
@@ -39,6 +44,9 @@
- gateway: "{{ networks['vimscore-3'].address }}"
network: "{{ networks['vimscore-3'].network }}/{{ networks['vimscore-3'].prefix }}"
state: "{{ 'absent' if ansible_hostname == 'vimscore-3' else 'present' }}"
+ - gateway: "{{ networks['arius'].address }}"
+ network: "{{ networks['arius'].network }}/{{ networks['arius'].prefix }}"
+ state: "{{ 'absent' if ansible_hostname == 'arius' else 'present' }}"
- gateway: "{{ networks['akili'].address }}"
network: "{{ networks['akili'].network }}/{{ networks['akili'].prefix }}"
state: "{{ 'absent' if ansible_hostname == 'akili' else 'present' }}"
@@ -63,6 +71,10 @@
allowed_ips:
- "{{ networks['vimscore-3'].address | ipaddr('address') }}/32"
- "{{ networks['vimscore-3'].network }}/{{ networks['vimscore-3'].prefix }}"
+ arius:
+ allowed_ips:
+ - "{{ networks['arius'].address | ipaddr('address') }}/32"
+ - "{{ networks['arius'].network }}/{{ networks['arius'].prefix }}"
akili:
allowed_ips:
- "{{ networks['akili'].address | ipaddr('address') }}/32"