Fix the boolean that manages the network interfaces settings.

This commit is contained in:
Andrea Dell'Amico 2020-01-08 18:49:32 +01:00
parent ad4ed35212
commit 75dd8ca0cb
1 changed files with 2 additions and 1 deletions

View File

@ -72,12 +72,13 @@ myorigin = {{ ansible_fqdn }}
#
# Note: you need to stop/start Postfix when this parameter changes.
#
{% if not postfix_use_inet_interfaces %}
{% if postfix_use_inet_interfaces %}
{% if not postfix_smtpd_server %}
inet_interfaces = localhost
inet_protocols = ipv4
{% else %}
inet_interfaces = {% for int in postfix_inet_interfaces %}{{ int }}{% if not loop.last %}, {% endif %}{% endfor %}
inet_protocols = {% for proto in postfix_inet_protocols %}{{ proto }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% endif %}