2021-03-10 05:44:10 +01:00
|
|
|
{{ ansible_managed | comment }}
|
2021-01-31 06:07:05 +01:00
|
|
|
|
|
|
|
[Interface]
|
|
|
|
PrivateKey = {{ item.private_key }}
|
2021-02-21 10:57:44 +01:00
|
|
|
{% if 'listen_port' in item %}
|
2021-01-31 06:07:05 +01:00
|
|
|
ListenPort = {{ item.listen_port }}
|
2021-02-21 10:57:44 +01:00
|
|
|
{% endif %}
|
2021-01-31 06:07:05 +01:00
|
|
|
|
|
|
|
[Peer]
|
2021-02-21 10:57:44 +01:00
|
|
|
PublicKey = {{ item.peer.public_key }}
|
|
|
|
AllowedIps = {{ item.peer.allowed_addrs | join(", ") }}
|
|
|
|
PersistentKeepalive = {{ item.peer.keepalive }}
|
|
|
|
{% if 'endpoint' in item.peer %}
|
|
|
|
Endpoint = {{ item.peer.endpoint }}
|
2021-02-20 21:02:24 +01:00
|
|
|
{% endif %}
|