aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-03 14:01:36 +0100
committerGravatar Joe Banks <[email protected]>2024-09-03 15:14:54 +0100
commitc0168b7486c641a352c3f38ae055b9f02f773018 (patch)
treea28a7615322a2eff9be653a71018aa108690c46e /ansible
parentSet ansible_managed for use in templates (diff)
Change all templates to use {{ ansible_managed }}
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/alloy/templates/config.alloy.j22
-rw-r--r--ansible/roles/dovecot-monitoring/templates/maildir-mails.sh.j22
-rw-r--r--ansible/roles/dovecot-monitoring/templates/maildir-sizes.sh.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/10-auth.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/10-mail.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/10-master.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/10-ssl.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/15-mailboxes.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/20-imap.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/20-lmtp.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j22
-rw-r--r--ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j22
-rw-r--r--ansible/roles/dovecot/templates/dovecot.conf.j22
-rw-r--r--ansible/roles/dovecot/templates/learn-ham.sieve.j22
-rw-r--r--ansible/roles/dovecot/templates/learn-spam.sieve.j22
-rw-r--r--ansible/roles/dovecot/templates/prevent-duplicates.sieve.j22
-rw-r--r--ansible/roles/dovecot/templates/spam-to-folder.sieve.j22
-rw-r--r--ansible/roles/git-mirrors/templates/cgitrc.j22
-rw-r--r--ansible/roles/munin-node/templates/munin-node.conf.j22
-rw-r--r--ansible/roles/munin-node/templates/plugin.conf.j22
-rw-r--r--ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j22
-rw-r--r--ansible/roles/munin-node/templates/plugins/lovelace/lovering_inheritance.py.j22
-rw-r--r--ansible/roles/munin/templates/munin.conf.j22
-rw-r--r--ansible/roles/nginx/templates/default_server.conf2
-rw-r--r--ansible/roles/opendkim/templates/opendkim.conf.j22
-rw-r--r--ansible/roles/opendmarc-inbox/templates/dmarc.sieve.j22
-rw-r--r--ansible/roles/postfix/templates/header-checks-submission.j22
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-group-aliases.cf.j22
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j22
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j22
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-service-mail.cf.j22
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-uid.cf.j22
-rw-r--r--ansible/roles/postfix/templates/main.cf.j22
-rw-r--r--ansible/roles/postfix/templates/transport.j22
-rw-r--r--ansible/roles/rrdstats/templates/generate-rrdtool-stats.service.j22
-rw-r--r--ansible/roles/rrdstats/templates/generate-rrdtool-stats.timer.j22
-rw-r--r--ansible/roles/spamassassin/templates/local.cf.j22
-rw-r--r--ansible/roles/wireguard/templates/wg0.conf.j22
38 files changed, 38 insertions, 38 deletions
diff --git a/ansible/roles/alloy/templates/config.alloy.j2 b/ansible/roles/alloy/templates/config.alloy.j2
index 805d167..d6a9ed3 100644
--- a/ansible/roles/alloy/templates/config.alloy.j2
+++ b/ansible/roles/alloy/templates/config.alloy.j2
@@ -1,4 +1,4 @@
-// Managed by Ansible
+// {{ ansible_managed }}
logging {
level = "info"
diff --git a/ansible/roles/dovecot-monitoring/templates/maildir-mails.sh.j2 b/ansible/roles/dovecot-monitoring/templates/maildir-mails.sh.j2
index 37e8d17..68b8ef5 100644
--- a/ansible/roles/dovecot-monitoring/templates/maildir-mails.sh.j2
+++ b/ansible/roles/dovecot-monitoring/templates/maildir-mails.sh.j2
@@ -1,5 +1,5 @@
#!/bin/sh
-# Ansible managed
+# {{ ansible_managed }}
cd /var/vmail && \
find . \
diff --git a/ansible/roles/dovecot-monitoring/templates/maildir-sizes.sh.j2 b/ansible/roles/dovecot-monitoring/templates/maildir-sizes.sh.j2
index 75086d0..efdbeca 100644
--- a/ansible/roles/dovecot-monitoring/templates/maildir-sizes.sh.j2
+++ b/ansible/roles/dovecot-monitoring/templates/maildir-sizes.sh.j2
@@ -1,5 +1,5 @@
#!/bin/sh
-# Ansible managed
+# {{ ansible_managed }}
cd /var/vmail && \
du --bytes --summarize -- * \
diff --git a/ansible/roles/dovecot/templates/configs/10-auth.conf.j2 b/ansible/roles/dovecot/templates/configs/10-auth.conf.j2
index 8207996..a06b02b 100644
--- a/ansible/roles/dovecot/templates/configs/10-auth.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/10-auth.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
##
## Authentication processes
diff --git a/ansible/roles/dovecot/templates/configs/10-mail.conf.j2 b/ansible/roles/dovecot/templates/configs/10-mail.conf.j2
index 57e1674..23f15a1 100644
--- a/ansible/roles/dovecot/templates/configs/10-mail.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/10-mail.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
##
## Mailbox locations and namespaces
diff --git a/ansible/roles/dovecot/templates/configs/10-master.conf.j2 b/ansible/roles/dovecot/templates/configs/10-master.conf.j2
index 965b3dc..b338eac 100644
--- a/ansible/roles/dovecot/templates/configs/10-master.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/10-master.conf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
#default_process_limit = 100
#default_client_limit = 1000
diff --git a/ansible/roles/dovecot/templates/configs/10-ssl.conf.j2 b/ansible/roles/dovecot/templates/configs/10-ssl.conf.j2
index c7a3aa8..1e5fae4 100644
--- a/ansible/roles/dovecot/templates/configs/10-ssl.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/10-ssl.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
##
## SSL settings
diff --git a/ansible/roles/dovecot/templates/configs/15-mailboxes.conf.j2 b/ansible/roles/dovecot/templates/configs/15-mailboxes.conf.j2
index 534b505..92f788f 100644
--- a/ansible/roles/dovecot/templates/configs/15-mailboxes.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/15-mailboxes.conf.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
##
## Mailbox definitions
diff --git a/ansible/roles/dovecot/templates/configs/20-imap.conf.j2 b/ansible/roles/dovecot/templates/configs/20-imap.conf.j2
index 615cb86..c64a2f8 100644
--- a/ansible/roles/dovecot/templates/configs/20-imap.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/20-imap.conf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
##
## IMAP specific settings
diff --git a/ansible/roles/dovecot/templates/configs/20-lmtp.conf.j2 b/ansible/roles/dovecot/templates/configs/20-lmtp.conf.j2
index 08b3143..0fed7f2 100644
--- a/ansible/roles/dovecot/templates/configs/20-lmtp.conf.j2
+++ b/ansible/roles/dovecot/templates/configs/20-lmtp.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
##
## LMTP specific settings
diff --git a/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2 b/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
index 139777d..2ff06cf 100644
--- a/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
+++ b/ansible/roles/dovecot/templates/configs/auth-ldap.conf.ext.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
# Authentication for LDAP users. Included from 10-auth.conf.
#
diff --git a/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2 b/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
index a41f0fe..49a9a86 100644
--- a/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
+++ b/ansible/roles/dovecot/templates/dovecot-ldap.conf.ext.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
# This file is commonly accessed via passdb {} or userdb {} section in
# conf.d/auth-ldap.conf.ext
diff --git a/ansible/roles/dovecot/templates/dovecot.conf.j2 b/ansible/roles/dovecot/templates/dovecot.conf.j2
index 7f1807b..3584a85 100644
--- a/ansible/roles/dovecot/templates/dovecot.conf.j2
+++ b/ansible/roles/dovecot/templates/dovecot.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
## Dovecot configuration file
diff --git a/ansible/roles/dovecot/templates/learn-ham.sieve.j2 b/ansible/roles/dovecot/templates/learn-ham.sieve.j2
index 6c1714e..4ea3114 100644
--- a/ansible/roles/dovecot/templates/learn-ham.sieve.j2
+++ b/ansible/roles/dovecot/templates/learn-ham.sieve.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
require ["vnd.dovecot.pipe", "copy", "imapsieve", "variables"];
diff --git a/ansible/roles/dovecot/templates/learn-spam.sieve.j2 b/ansible/roles/dovecot/templates/learn-spam.sieve.j2
index 318fc49..23dc446 100644
--- a/ansible/roles/dovecot/templates/learn-spam.sieve.j2
+++ b/ansible/roles/dovecot/templates/learn-spam.sieve.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
diff --git a/ansible/roles/dovecot/templates/prevent-duplicates.sieve.j2 b/ansible/roles/dovecot/templates/prevent-duplicates.sieve.j2
index 0af18ae..ee08e33 100644
--- a/ansible/roles/dovecot/templates/prevent-duplicates.sieve.j2
+++ b/ansible/roles/dovecot/templates/prevent-duplicates.sieve.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
require ["duplicate"];
diff --git a/ansible/roles/dovecot/templates/spam-to-folder.sieve.j2 b/ansible/roles/dovecot/templates/spam-to-folder.sieve.j2
index 9033787..a2ece84 100644
--- a/ansible/roles/dovecot/templates/spam-to-folder.sieve.j2
+++ b/ansible/roles/dovecot/templates/spam-to-folder.sieve.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
require ["fileinto"];
diff --git a/ansible/roles/git-mirrors/templates/cgitrc.j2 b/ansible/roles/git-mirrors/templates/cgitrc.j2
index d6aabed..4af8997 100644
--- a/ansible/roles/git-mirrors/templates/cgitrc.j2
+++ b/ansible/roles/git-mirrors/templates/cgitrc.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
# See cgitrc(5) for details
diff --git a/ansible/roles/munin-node/templates/munin-node.conf.j2 b/ansible/roles/munin-node/templates/munin-node.conf.j2
index bdd3cec..b52490f 100644
--- a/ansible/roles/munin-node/templates/munin-node.conf.j2
+++ b/ansible/roles/munin-node/templates/munin-node.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
log_level 4
diff --git a/ansible/roles/munin-node/templates/plugin.conf.j2 b/ansible/roles/munin-node/templates/plugin.conf.j2
index 9d2c74c..a3e018a 100644
--- a/ansible/roles/munin-node/templates/plugin.conf.j2
+++ b/ansible/roles/munin-node/templates/plugin.conf.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
[dovecot_maildirs]
user root
diff --git a/ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j2 b/ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j2
index b634df3..2a23fb3 100644
--- a/ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j2
+++ b/ansible/roles/munin-node/templates/plugins/lovelace/dovecot_maildirs.sh.j2
@@ -1,5 +1,5 @@
#!/bin/sh
-# Ansible managed
+# {{ ansible_managed }}
cd /var/vmail || exit 1
diff --git a/ansible/roles/munin-node/templates/plugins/lovelace/lovering_inheritance.py.j2 b/ansible/roles/munin-node/templates/plugins/lovelace/lovering_inheritance.py.j2
index 4e6d315..0f33f1b 100644
--- a/ansible/roles/munin-node/templates/plugins/lovelace/lovering_inheritance.py.j2
+++ b/ansible/roles/munin-node/templates/plugins/lovelace/lovering_inheritance.py.j2
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# Ansible managed
+# {{ ansible_managed }}
import datetime
import random
diff --git a/ansible/roles/munin/templates/munin.conf.j2 b/ansible/roles/munin/templates/munin.conf.j2
index bf97a57..d52ecb6 100644
--- a/ansible/roles/munin/templates/munin.conf.j2
+++ b/ansible/roles/munin/templates/munin.conf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files. They all
diff --git a/ansible/roles/nginx/templates/default_server.conf b/ansible/roles/nginx/templates/default_server.conf
index ff4ee89..a22853d 100644
--- a/ansible/roles/nginx/templates/default_server.conf
+++ b/ansible/roles/nginx/templates/default_server.conf
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
server {
listen 80 default_server;
diff --git a/ansible/roles/opendkim/templates/opendkim.conf.j2 b/ansible/roles/opendkim/templates/opendkim.conf.j2
index 4914452..b68d48e 100644
--- a/ansible/roles/opendkim/templates/opendkim.conf.j2
+++ b/ansible/roles/opendkim/templates/opendkim.conf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
# Common signing and verification parameters. In Debian, the "From" header is
# oversigned, because it is often the identity key used by reputation systems
diff --git a/ansible/roles/opendmarc-inbox/templates/dmarc.sieve.j2 b/ansible/roles/opendmarc-inbox/templates/dmarc.sieve.j2
index eb7ac87..69fe7c0 100644
--- a/ansible/roles/opendmarc-inbox/templates/dmarc.sieve.j2
+++ b/ansible/roles/opendmarc-inbox/templates/dmarc.sieve.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
require ["fileinto", "envelope", "subaddress", "mailbox"];
diff --git a/ansible/roles/postfix/templates/header-checks-submission.j2 b/ansible/roles/postfix/templates/header-checks-submission.j2
index 3877c88..079e885 100644
--- a/ansible/roles/postfix/templates/header-checks-submission.j2
+++ b/ansible/roles/postfix/templates/header-checks-submission.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
# Taken from the excellent mailinabox project:
# https://github.com/mail-in-a-box/mailinabox/blob/ddf8e857fdb2ac3508af9339abcdd908835f899b/conf/postfix_outgoing_mail_header_filters
#
diff --git a/ansible/roles/postfix/templates/ldap/ldap-group-aliases.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-group-aliases.cf.j2
index 4c55417..96d3ea1 100644
--- a/ansible/roles/postfix/templates/ldap/ldap-group-aliases.cf.j2
+++ b/ansible/roles/postfix/templates/ldap/ldap-group-aliases.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
server_host = {{ postfix_bind_server }}
bind = yes
diff --git a/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2
index 67fa9e2..9e99d33 100644
--- a/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2
+++ b/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
server_host = {{ postfix_bind_server }}
bind = yes
diff --git a/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2
index 2d9f48f..a4add20 100644
--- a/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2
+++ b/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
server_host = {{ postfix_bind_server }}
bind = yes
diff --git a/ansible/roles/postfix/templates/ldap/ldap-service-mail.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-service-mail.cf.j2
index 1d4a877..a561934 100644
--- a/ansible/roles/postfix/templates/ldap/ldap-service-mail.cf.j2
+++ b/ansible/roles/postfix/templates/ldap/ldap-service-mail.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
server_host = {{ postfix_bind_server }}
bind = yes
diff --git a/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2
index 8c772ef..7f62c69 100644
--- a/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2
+++ b/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
server_host = {{ postfix_bind_server }}
bind = yes
diff --git a/ansible/roles/postfix/templates/main.cf.j2 b/ansible/roles/postfix/templates/main.cf.j2
index 8770c6f..528ab8f 100644
--- a/ansible/roles/postfix/templates/main.cf.j2
+++ b/ansible/roles/postfix/templates/main.cf.j2
@@ -1,4 +1,4 @@
-# Ansible Managed
+# {{ ansible_managed }}
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
diff --git a/ansible/roles/postfix/templates/transport.j2 b/ansible/roles/postfix/templates/transport.j2
index 623d005..869e3f3 100644
--- a/ansible/roles/postfix/templates/transport.j2
+++ b/ansible/roles/postfix/templates/transport.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
#
# Postfix Mail Transport Map
diff --git a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.service.j2 b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.service.j2
index b185bb2..f4366c3 100644
--- a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.service.j2
+++ b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.service.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
[Unit]
Description = Generate Python Discord statistics via rrdtool
After = postgresql.service
diff --git a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.timer.j2 b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.timer.j2
index 92e6bab..c935be7 100644
--- a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.timer.j2
+++ b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.timer.j2
@@ -1,4 +1,4 @@
-# Ansible managed
+# {{ ansible_managed }}
[Unit]
Description = Generate rrdtool stats minutely
diff --git a/ansible/roles/spamassassin/templates/local.cf.j2 b/ansible/roles/spamassassin/templates/local.cf.j2
index f59e9bc..9314f66 100644
--- a/ansible/roles/spamassassin/templates/local.cf.j2
+++ b/ansible/roles/spamassassin/templates/local.cf.j2
@@ -1,4 +1,4 @@
-# Managed by Ansible
+# {{ ansible_managed }}
# This is the right place to customize your installation of SpamAssassin.
#
diff --git a/ansible/roles/wireguard/templates/wg0.conf.j2 b/ansible/roles/wireguard/templates/wg0.conf.j2
index a2b89f2..8dc7c1b 100644
--- a/ansible/roles/wireguard/templates/wg0.conf.j2
+++ b/ansible/roles/wireguard/templates/wg0.conf.j2
@@ -1,4 +1,4 @@
-# Configuration managed by Ansible
+# {{ ansible_managed }}
[Interface]
Address = {{ wireguard_subnet }}
ListenPort = {{ wireguard_port }}