From ba8975d6be065b2904ff49d3e617cbb0561e1aa0 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 18 Apr 2023 21:16:22 +0200 Subject: [PATCH] Fix conditional --- templates/postfix/conf.d/smtp_sasl_auth_password.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/postfix/conf.d/smtp_sasl_auth_password.j2 b/templates/postfix/conf.d/smtp_sasl_auth_password.j2 index 74db908..61ba331 100644 --- a/templates/postfix/conf.d/smtp_sasl_auth_password.j2 +++ b/templates/postfix/conf.d/smtp_sasl_auth_password.j2 @@ -1,5 +1,5 @@ #{{ ansible_managed }} -{% if postfix_smtp_sasl_auth is defined %} +{% if postfix_smtp_sasl_auth is defined and postfix_smtp_sasl_auth %} {{ "%-50s %s:%s" | format(postfix_smtp_sasl_auth_relay, postfix_smtp_sasl_auth_user, postfix_smtp_sasl_auth_password) }} {% endif %}