mail-server/ansible/templates/wireguard.if.j2

7 lines
216 B
Plaintext
Raw Normal View History

2024-05-29 20:06:22 +01:00
{% set _wg = lookup('vars', inventory_hostname + '_wg') %}
# {{ ansible_managed }}
inet {{ _wg.address }} 255.255.255.0 NONE
up
!/usr/local/bin/wg setconf {{ _wg.interface }} /etc/wireguard/{{ _wg.interface }}.conf