Update wireguard template

This commit is contained in:
Tobias Manske 2024-03-02 22:34:12 +01:00
parent 3993ddfd52
commit 0709e9d6b9
Signed by: tobias
GPG Key ID: 9164B527694A0709
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}