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

11 lines
207 B
Text
Raw Normal View History

# {{ 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 %}