From 0653c447dd213e794d77117b01ccccec0bbae068 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 20 Aug 2023 22:58:29 +0200 Subject: add ansible_managed comment to templates --- roles/apt/templates/02periodic.j2 | 2 ++ roles/apt/templates/50unattended-upgrades.j2 | 2 ++ roles/firewall/templates/rules.v4 | 2 ++ roles/firewall/templates/rules.v6 | 2 ++ roles/letsencrypt/templates/certbot.ini | 2 ++ roles/letsencrypt/templates/domain_list.txt | 2 ++ roles/sshd/templates/sshd_config | 2 ++ roles/wireguard/templates/wg0.conf | 2 ++ 8 files changed, 16 insertions(+) diff --git a/roles/apt/templates/02periodic.j2 b/roles/apt/templates/02periodic.j2 index 0c26a8f..42e080d 100644 --- a/roles/apt/templates/02periodic.j2 +++ b/roles/apt/templates/02periodic.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + APT::Periodic::Enable "1"; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; diff --git a/roles/apt/templates/50unattended-upgrades.j2 b/roles/apt/templates/50unattended-upgrades.j2 index dfb2f9e..389bb2b 100644 --- a/roles/apt/templates/50unattended-upgrades.j2 +++ b/roles/apt/templates/50unattended-upgrades.j2 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + Unattended-Upgrade::Origins-Pattern { "origin=${distro_id},codename=${distro_codename}"; "origin=${distro_id},codename=${distro_codename}-security"; diff --git a/roles/firewall/templates/rules.v4 b/roles/firewall/templates/rules.v4 index 38caa43..1bfeb94 100644 --- a/roles/firewall/templates/rules.v4 +++ b/roles/firewall/templates/rules.v4 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + *filter # By default, drop incoming packets: diff --git a/roles/firewall/templates/rules.v6 b/roles/firewall/templates/rules.v6 index ab1ce6d..2e94e25 100644 --- a/roles/firewall/templates/rules.v6 +++ b/roles/firewall/templates/rules.v6 @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + *filter # By default, drop incoming packets: diff --git a/roles/letsencrypt/templates/certbot.ini b/roles/letsencrypt/templates/certbot.ini index 84dc0f8..71095d6 100644 --- a/roles/letsencrypt/templates/certbot.ini +++ b/roles/letsencrypt/templates/certbot.ini @@ -1 +1,3 @@ +{{ ansible_managed | comment }} + dns_digitalocean_token = {{ digitalocean_token }} diff --git a/roles/letsencrypt/templates/domain_list.txt b/roles/letsencrypt/templates/domain_list.txt index 8cd60f8..d45c7f0 100644 --- a/roles/letsencrypt/templates/domain_list.txt +++ b/roles/letsencrypt/templates/domain_list.txt @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + {% for domain in certificate_domains %} {{ domain }} {% endfor %} diff --git a/roles/sshd/templates/sshd_config b/roles/sshd/templates/sshd_config index 6963c88..abcf0d7 100644 --- a/roles/sshd/templates/sshd_config +++ b/roles/sshd/templates/sshd_config @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + # Parameters that have sane defaults on Debian 11 are omitted. {% set ssh_port = hostvars[inventory_hostname].ansible_port %} diff --git a/roles/wireguard/templates/wg0.conf b/roles/wireguard/templates/wg0.conf index aff1300..fca9a0b 100644 --- a/roles/wireguard/templates/wg0.conf +++ b/roles/wireguard/templates/wg0.conf @@ -1,3 +1,5 @@ +{{ ansible_managed | comment }} + [Interface] PrivateKey = {{ wg_private_key }} Address = {{ wg_addr4 }}, {{ wg_addr6 }} -- cgit v1.2.3