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 }} ### {{ ansible_managed }}
#{% if for domains postfix_transport_relay is defined %} {% for domain in postfix_domains %}
#{% 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 %}
{% if domain.type == "relay" %} {% if domain.type == "relay" %}
{% if domain.comment is defined %} {% if domain.comment is defined %}
comment: {{ domain.comment }} # {{ domain.comment }}
{% endif %} {% endif %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }} {{ "%-50s %s" | format(domain.name, domain.relay_host) }}
{% endif %} {% endif %}