fix template

This commit is contained in:
Antonio J. Delgado 2023-08-09 14:55:05 +03:00
parent 4dab6ecdde
commit e05ab76cb2

View file

@ -1,5 +1,6 @@
[Interface] [Interface]
Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}{% endif %}{% endfor %} Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}
{% endif %}{% endfor %}
PrivateKey = {{ private_key }} PrivateKey = {{ private_key }}
ListenPort = {{ listenport }} ListenPort = {{ listenport }}
DNS = {% if vpn_dns is defined %}{{ vpn_dns }}{% else %}{{ server_address }}{% endif %} DNS = {% if vpn_dns is defined %}{{ vpn_dns }}{% else %}{{ server_address }}{% endif %}