Tweak variable layout for wg additional hosts
This commit is contained in:
parent
4042d9595c
commit
4d7efb70ec
|
@ -72,9 +72,9 @@ Endpoint = {{host}}:{{wireguard_port}}
|
|||
{% if wg_additional_host_keys is defined %}
|
||||
{% for host in wg_additional_host_keys %}
|
||||
[Peer]
|
||||
# {{hostvars[host].name}}
|
||||
PublicKey = {{hostvars[host].public_key}}
|
||||
AllowedIPs = {{hostvars[host].wireguard_ip}}/32
|
||||
PersistentKeepalive = {{hostvars[host].wireguard_persistent_keepalive}}
|
||||
# {{ host.name }}
|
||||
PublicKey = {{host.public_key}}
|
||||
AllowedIPs = {{host.wireguard_ip}}/32
|
||||
PersistentKeepalive = {{host.wireguard_persistent_keepalive}}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue