From 4083f32156c5df71cb6ea370a411e152c8a67b8b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 12 Dec 2020 18:49:11 +0100 Subject: vs0 += arius. --- ansible/plays/wireguard-vs0.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ansible/plays/wireguard-vs0.yml') 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" -- cgit v1.2.3