diff options
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/files/arius/etc/wireguard/public-wg-hesland.key | 1 | ||||
-rw-r--r-- | ansible/files/webgateway/etc/wireguard/public-wg-hesland.key | 1 | ||||
-rw-r--r-- | ansible/group_vars/all/wireguard_wg-hesland.yml | 11 | ||||
-rw-r--r-- | ansible/inventory | 5 | ||||
-rw-r--r-- | ansible/wireguard.yml | 9 |
5 files changed, 27 insertions, 0 deletions
diff --git a/ansible/files/arius/etc/wireguard/public-wg-hesland.key b/ansible/files/arius/etc/wireguard/public-wg-hesland.key new file mode 100644 index 0000000..3102f19 --- /dev/null +++ b/ansible/files/arius/etc/wireguard/public-wg-hesland.key @@ -0,0 +1 @@ ++h76BN8VCL/pZcDjhpSJXyTcLrUc7bPbB+aqwu892Gc= diff --git a/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key b/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key new file mode 100644 index 0000000..e9aa962 --- /dev/null +++ b/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key @@ -0,0 +1 @@ +BSuop+m0ca2zrJ+gZgawFP22tM/MJ2YXIol2kr8ETT4= diff --git a/ansible/group_vars/all/wireguard_wg-hesland.yml b/ansible/group_vars/all/wireguard_wg-hesland.yml new file mode 100644 index 0000000..6755799 --- /dev/null +++ b/ansible/group_vars/all/wireguard_wg-hesland.yml @@ -0,0 +1,11 @@ +wireguard-wg-hesland: + if: wg-hesland + ipv4_prefix: 24 + hosts: + webgateway: + endpoint: hesland.trygvis.io + listen_port: 55139 + conflatorio: + ipv4: 10.0.212.2 + arius: + ipv4: 10.0.212.4 diff --git a/ansible/inventory b/ansible/inventory index 08e0fa0..e22f279 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -130,4 +130,9 @@ all: android-trygvis: knot: + wireguard_hesland: + hosts: + arius: + conflatorio: + # vim: set filetype=yaml: diff --git a/ansible/wireguard.yml b/ansible/wireguard.yml index 3668f02..f22445d 100644 --- a/ansible/wireguard.yml +++ b/ansible/wireguard.yml @@ -22,3 +22,12 @@ roles: - role: wireguard wireguard__name: wireguard-wg1 + +- hosts: + - wireguard_hesland + tags: wg-hesland + roles: + - role: wireguard + wireguard__name: wireguard-wg-hesland + vars: + wg_net: "{{ hostvars[ansible_hostname][wireguard__name] }}" |