From 0c671a9ff4f0828367a720682446a4806008d26e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 28 Aug 2019 11:08:38 +0200 Subject: [PATCH] fix ansible_managed handling --- templates/etc/postfix/main.cf.j2 | 3 +-- templates/etc/postfix/sasl_passwd.j2 | 3 +-- templates/etc/postfix/sender_canonical.j2 | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/templates/etc/postfix/main.cf.j2 b/templates/etc/postfix/main.cf.j2 index 21084f1..9a7f8ea 100644 --- a/templates/etc/postfix/main.cf.j2 +++ b/templates/etc/postfix/main.cf.j2 @@ -1,5 +1,4 @@ -# {{ ansible_managed }} - +{{ ansible_managed | comment }} # Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and for a complete parameter # list, see the postconf(5) manual page (command: "man 5 postconf"). diff --git a/templates/etc/postfix/sasl_passwd.j2 b/templates/etc/postfix/sasl_passwd.j2 index 8e7e2cc..a16276e 100644 --- a/templates/etc/postfix/sasl_passwd.j2 +++ b/templates/etc/postfix/sasl_passwd.j2 @@ -1,4 +1,3 @@ #jinja2: lstrip_blocks: True -# {{ ansible_managed }} - +{{ ansible_managed | comment }} [{{ postfix_relay_relayhost }}]:{{ postfix_relay_relayport }} {{ postfix_relay_auth_user }}@{{ postfix_relay_relaydomain }}:{{ postfix_relay_auth_password }} diff --git a/templates/etc/postfix/sender_canonical.j2 b/templates/etc/postfix/sender_canonical.j2 index 3f19b24..1501ea8 100644 --- a/templates/etc/postfix/sender_canonical.j2 +++ b/templates/etc/postfix/sender_canonical.j2 @@ -1,6 +1,5 @@ #jinja2: lstrip_blocks: True -# {{ ansible_managed }} - +{{ ansible_managed | comment }} {% for sender in postfix_relay_senders %} {{ sender.user }} {{ sender.address }} {% endfor %}