diff --git a/tasks/main.yml b/tasks/main.yml index 284135d..9092328 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -29,7 +29,7 @@ tags: - pkg - import_tasks: "pkg_Debian.yml" - when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' + when: ansible_distribution == 'Debian' tags: - pkg diff --git a/tasks/pkg_Alpine.yml b/tasks/pkg_Alpine.yml index 0d74dbc..f77aa9c 100644 --- a/tasks/pkg_Alpine.yml +++ b/tasks/pkg_Alpine.yml @@ -38,7 +38,6 @@ - docker-py - haveged - htop - - iproute2 - iptables - ip6tables - nginx diff --git a/templates/networking.j2 b/templates/networking.j2 index 005b1ca..c176831 100644 --- a/templates/networking.j2 +++ b/templates/networking.j2 @@ -54,4 +54,13 @@ iface br0 inet6 auto {% endif %} {% endif %} +{% if wanted_serekh is defined %} +auto wg-serekh +iface wg-serekh inet6 static + address {{ wanted_serekh }}/64 + pre-up ip link add dev wg-serekh type wireguard + pre-up wg setconf wg-serekh /etc/wireguard/wg-serekh.conf + post-down ip link delete dev wg-serekh +{% endif %} + source-directory /etc/network/interfaces.d