diff --git a/roles/wireguard_endpoint/templates/interface.j2 b/roles/wireguard_endpoint/templates/interface.j2 index 66ab69d..edc3348 100644 --- a/roles/wireguard_endpoint/templates/interface.j2 +++ b/roles/wireguard_endpoint/templates/interface.j2 @@ -1,7 +1,6 @@ -# {{ ansible_managed }} +{{ ansible_managed | comment }} auto {{ item.name }} - iface {{ item.name }} link-type wireguard pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf diff --git a/roles/wireguard_endpoint/templates/sysctl.conf.j2 b/roles/wireguard_endpoint/templates/sysctl.conf.j2 index 75be14e..9005499 100644 --- a/roles/wireguard_endpoint/templates/sysctl.conf.j2 +++ b/roles/wireguard_endpoint/templates/sysctl.conf.j2 @@ -1,4 +1,4 @@ -# {{ ansible_managed }} +{{ ansible_managed | comment }} net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1 diff --git a/roles/wireguard_endpoint/templates/wireguard.conf.j2 b/roles/wireguard_endpoint/templates/wireguard.conf.j2 index adf71b1..f2bbb3e 100644 --- a/roles/wireguard_endpoint/templates/wireguard.conf.j2 +++ b/roles/wireguard_endpoint/templates/wireguard.conf.j2 @@ -1,4 +1,4 @@ -# {{ ansible_managed }} +{{ ansible_managed | comment }} [Interface] PrivateKey = {{ item.private_key }}