From 0709e9d6b9ffa0c87feef707f08c7000c133c001 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sat, 2 Mar 2024 22:34:12 +0100 Subject: [PATCH] Update wireguard template --- ansible/plays/templates/wg_infra.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/plays/templates/wg_infra.conf.j2 b/ansible/plays/templates/wg_infra.conf.j2 index 2ba73ec..706e322 100644 --- a/ansible/plays/templates/wg_infra.conf.j2 +++ b/ansible/plays/templates/wg_infra.conf.j2 @@ -15,7 +15,6 @@ 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 %} @@ -24,4 +23,5 @@ Endpoint = [{{ hvar.ansible_default_ipv4.address | mandatory }}]:52000 {% if hvar.wg_keepalive is defined %} PersistentKeepalive = {{ hvar.wg_keepalive }} {% endif %} + {% endfor %}