From 94c49143ac0a25fb81fe9cbe10a1609dc1ce9a43 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Wed, 10 Mar 2021 05:44:10 +0100 Subject: [PATCH] Use '{{ ansible_managed | comment }}' --- roles/wireguard_endpoint/templates/interface.j2 | 3 +-- roles/wireguard_endpoint/templates/sysctl.conf.j2 | 2 +- roles/wireguard_endpoint/templates/wireguard.conf.j2 | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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 }}