wg.conf: wireguard_unmanaged_hosts if
This commit is contained in:
parent
ce004e8bc8
commit
d1942b7ffd
|
@ -68,7 +68,7 @@ SaveConfig = true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{# unmanaged hosts #}
|
{% if wireguard_unmanaged_hosts is defined %}
|
||||||
{% for hostdata in uh_public_key.results %}
|
{% for hostdata in uh_public_key.results %}
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
|
@ -76,3 +76,4 @@ SaveConfig = true
|
||||||
PublicKey = {{ hostdata.stdout }}
|
PublicKey = {{ hostdata.stdout }}
|
||||||
AllowedIPs = {{ hostdata.item.allowed_ips}}
|
AllowedIPs = {{ hostdata.item.allowed_ips}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
Reference in a new issue