ansible/roles/wireguard-endpoint/templates/interface.j2
Jeltz ea87aa7ec1
Some checks failed
continuous-integration/drone/push Build is failing
WIP: Create a role for a Wireguard VPN endpoint
2021-01-31 06:07:05 +01:00

10 lines
207 B
Django/Jinja

# {{ ansible_managed }}
auto {{ item.name }}
iface {{ item.name }}
link-type wireguard
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
{% for addr in item.addrs %}
address {{ addr }}
{% endfor %}