Fix relay template

This commit is contained in:
phil 2023-03-24 20:12:26 +01:00
parent 6d4ba2caea
commit 28c7f9ca79

View file

@ -1,19 +1,9 @@
### {{ ansible_managed }}
#{% if for domains postfix_transport_relay is defined %}
#{% for transport in postfix_transport_relay %}
#{% if transport.comment is defined %}
#{{ transport.comment }}
#{% endif %}
#{{ "%-50s %s" | format(transport.destination, transport.relay) }}
#{% endfor %}
#{% endif %}
{% for domain in posfix_domains %}
{% for domain in postfix_domains %}
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
comment: {{ domain.comment }}
# {{ domain.comment }}
{% endif %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
{% endif %}