ansible/roles/wireguard-endpoint/templates/wireguard.conf.j2
Jeltz 85c1d905e7
Some checks failed
continuous-integration/drone/push Build is failing
Use different interfaces for GS and EdC tunnels
2021-02-21 10:57:44 +01:00

15 lines
384 B
Django/Jinja

# {{ ansible_managed }}
[Interface]
PrivateKey = {{ item.private_key }}
{% if 'listen_port' in item %}
ListenPort = {{ item.listen_port }}
{% endif %}
[Peer]
PublicKey = {{ item.peer.public_key }}
AllowedIps = {{ item.peer.allowed_addrs | join(", ") }}
PersistentKeepalive = {{ item.peer.keepalive }}
{% if 'endpoint' in item.peer %}
Endpoint = {{ item.peer.endpoint }}
{% endif %}