fix address in template

This commit is contained in:
Antonio J. Delgado 2022-11-04 18:04:15 +02:00
parent 247d15b443
commit 695bb85956

View file

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