aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/group_vars/all/wireguard_wg0.yml3
-rw-r--r--ansible/inventory3
-rw-r--r--ansible/plays/files/sweetzpot-macos/etc/wireguard/public-wg0.key1
-rw-r--r--ansible/roles/wireguard/tasks/main.yml12
4 files changed, 16 insertions, 3 deletions
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