From c8a73d21c9845d158536e40623303a193fb78639 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 8 Jun 2020 19:29:24 +0200 Subject: wg0: Adding sweetzpot-macos. --- ansible/group_vars/all/wireguard_wg0.yml | 3 +++ ansible/inventory | 3 +++ .../plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key | 1 + ansible/roles/wireguard/tasks/main.yml | 12 +++++++++--- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 ansible/plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key (limited to 'ansible') diff --git a/ansible/group_vars/all/wireguard_wg0.yml b/ansible/group_vars/all/wireguard_wg0.yml index ab6c845..6e161a9 100644 --- a/ansible/group_vars/all/wireguard_wg0.yml +++ b/ansible/group_vars/all/wireguard_wg0.yml @@ -31,3 +31,6 @@ wireguard_wg0: astyanax: state: present ipv6: fdf3:aad9:a885:0b3a::10 + sweetzpot-macos: + state: present + ipv6: fdf3:aad9:a885:0b3a::11 diff --git a/ansible/inventory b/ansible/inventory index 0eacd1b..1566f35 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -28,6 +28,8 @@ all: ansible_host: 2a01:79d:4698:96bc:d804:e55d:ee18:b7ba sweetzpot-mobile: ansible_host: 192.168.10.123 + sweetzpot-macos: + ansible_host: 0.0.0.0 conflatorio-test1: ansible_host: "fd56:1ae9:097d:3ddd:6c53:1011:3bad:9498" conflatorio-test2: @@ -156,6 +158,7 @@ all: knot: malabaricus: sweetzpot-mobile: + sweetzpot-macos: wireguard_wg1: hosts: diff --git a/ansible/plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key b/ansible/plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key new file mode 100644 index 0000000..ea56ab1 --- /dev/null +++ b/ansible/plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key @@ -0,0 +1 @@ +815EbcmtSqL9Fr6SdvfeL6/BLjDBAJDPsV/lnxeWmG0= diff --git a/ansible/roles/wireguard/tasks/main.yml b/ansible/roles/wireguard/tasks/main.yml index 6be02cc..734516b 100644 --- a/ansible/roles/wireguard/tasks/main.yml +++ b/ansible/roles/wireguard/tasks/main.yml @@ -14,20 +14,26 @@ - debug: var=all_peers - name: Install packages - tags: packages + tags: + - never + - packages apt: name: - wireguard install_recommends: no - name: Install packages (amd64) - tags: packages + tags: + - never + - packages apt: name: - linux-headers-amd64 install_recommends: no when: ansible_architecture == 'x86_64' - name: Install packages (i686) - tags: packages + tags: + - never + - packages apt: name: - linux-headers-i686-pae -- cgit v1.2.3