mirror of
https://github.com/pikami/mail-server.git
synced 2024-11-30 22:05:42 +00:00
7 lines
216 B
Django/Jinja
7 lines
216 B
Django/Jinja
{% 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
|