21 lines
489 B
Plaintext
21 lines
489 B
Plaintext
|
# {{ ansible_managed }}
|
||
|
|
||
|
[Interface]
|
||
|
{% if item.listen_port is defined %}
|
||
|
ListenPort = {{ item.listen_port }}
|
||
|
{% endif %}
|
||
|
PrivateKey = {{ item.privkey }}
|
||
|
Address = {{ item.addresses | join(', ') }}
|
||
|
|
||
|
{% for peer in item.peers %}
|
||
|
[Peer]
|
||
|
# {{ peer.name }}
|
||
|
PublicKey = {{ peer.pubkey }}
|
||
|
Endpoint = {{ peer.endpoint }}
|
||
|
AllowedIPs = {{ peer.allowed_ips | join(', ') }}
|
||
|
{% if peer.persistent_keepalive is defined %}
|
||
|
PersistentKeepalive = {{ peer.persistent_keepalive }}
|
||
|
{% endif %}
|
||
|
|
||
|
{% endfor %}
|