ansible/roles/wireguard_endpoint/templates/interface.j2

7 lines
175 B
Django/Jinja

{{ ansible_managed | comment }}
auto {{ item.name }}
iface {{ item.name }}
link-type wireguard
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
address {{ item.addr }}