ansible/roles/wireguard-endpoint/templates/wireguard.conf.j2

13 lines
282 B
Text
Raw Normal View History

# {{ ansible_managed }}
[Interface]
Address = {{ item.addrs | join(",") }}
PrivateKey = {{ item.private_key }}
ListenPort = {{ item.listen_port }}
{% for peer in item.peers %}
[Peer]
2021-02-20 17:03:34 +01:00
PublicKey = {{ peer.public_key }}
AllowedIps = {{ peer.allowed_addrs | join(",") }}
{% endfor %}