find address in list of peers
This commit is contained in:
parent
4f969dd538
commit
57127b31ce
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
[Interface]
|
||||
Address = {{ addresses[ansible_hostname] }}
|
||||
Address = {% for item in wireguard_peers %}{% if item['name'] == ansible_hostname %}}{{ item['AllowedIPs'] }}{% endif %}{% endfor %}
|
||||
PrivateKey = {{ private_key }}
|
||||
ListenPort = {{ listenport }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue