From b24702b0f2746363065a6a779cf350c9eef1620b Mon Sep 17 00:00:00 2001 From: "Stefan Hornburg (Racke)" Date: Wed, 19 Aug 2020 13:04:20 +0200 Subject: [PATCH] Skip writing of SASL password file when SASL authentication is disabled. --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index a8bd608..7ee8d3f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -64,7 +64,9 @@ owner: root group: root mode: 0600 - when: postfix_relayhost | length + when: + - postfix_sasl_auth_enable | bool + - postfix_relayhost | length no_log: not ansible_check_mode notify: - postmap sasl_passwd