From 7116505ce8dd6c9ad0af274e645616b17c0d53a7 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 8 May 2024 19:51:19 +0200 Subject: [PATCH] Use ipv4 for wireguard >.> --- ansible/plays/templates/wg_infra.conf.j2 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ansible/plays/templates/wg_infra.conf.j2 b/ansible/plays/templates/wg_infra.conf.j2 index 706e322..bbaa8cf 100644 --- a/ansible/plays/templates/wg_infra.conf.j2 +++ b/ansible/plays/templates/wg_infra.conf.j2 @@ -15,11 +15,7 @@ PrivateKey = {{ wg_private_key | mandatory }} [peer] PublicKey = {{ hvar.wg_public_key | mandatory }} AllowedIPs = {{ hvar.wg_addr | mandatory }}/32 -{% if hvar.ansible_default_ipv6 is defined and ansible_default_ipv6 is defined and hvar.ansible_default_ipv6.scope == "global" and ansible_default_ipv6.scope == "global" %} -Endpoint = [{{ hvar.ansible_default_ipv6.address | mandatory }}]:52000 -{% else %} Endpoint = [{{ hvar.ansible_default_ipv4.address | mandatory }}]:52000 -{% endif %} {% if hvar.wg_keepalive is defined %} PersistentKeepalive = {{ hvar.wg_keepalive }} {% endif %}