Fix conditional

This commit is contained in:
phil 2023-04-18 21:16:22 +02:00
parent 472ac725e5
commit ba8975d6be

View file

@ -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 %}