check for existing required values
This commit is contained in:
parent
a464ee465a
commit
a4620d9bb5
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostn
|
||||||
PrivateKey = {{ private_key }}
|
PrivateKey = {{ private_key }}
|
||||||
ListenPort = {{ listenport }}
|
ListenPort = {{ listenport }}
|
||||||
|
|
||||||
{% for item in wireguard_peers %}{% if item['name'] != inventory_hostname and 'PublicKey' in item %}
|
{% for item in wireguard_peers %}{% if item['name'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item and 'EndPointIP' in item %}
|
||||||
|
|
||||||
# Peer name: {{ item.name }}
|
# Peer name: {{ item.name }}
|
||||||
[Peer]
|
[Peer]
|
||||||
|
|
Loading…
Reference in a new issue