fix name in template

This commit is contained in:
Antonio J. Delgado 2023-10-05 10:54:18 +03:00
parent 61d55fadfb
commit 6546461125

View file

@ -4,9 +4,9 @@ PrivateKey = {{ private_key }}
ListenPort = {{ listenport }}
{% if vpn_dns is defined %}DNS = {{ vpn_dns }}{% endif %}
{% for item in groups['wireguard_clients'] %}{% if item['name'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %}
{% for item in groups['wireguard_clients'] %}{% if item['inventory_hostname'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %}
# Peer name: {{ item.name }}
# Peer name: {{ item.inventory_hostname }}
[Peer]
PublicKey = {{ item.PublicKey }}
AllowedIPs = {{ item.AllowedIPs }}