fix address in template
This commit is contained in:
parent
247d15b443
commit
695bb85956
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
[Interface]
|
[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 }}
|
PrivateKey = {{ private_key }}
|
||||||
ListenPort = {{ listenport }}
|
ListenPort = {{ listenport }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue