WIP: Test creation of relay domains

This commit is contained in:
phil 2023-03-24 19:40:10 +01:00
parent abbc03c164
commit 6d4ba2caea

View file

@ -1,10 +1,20 @@
### {{ ansible_managed }}
{% if postfix_transport_relay is defined %}
{% for transport in postfix_transport_relay %}
{% if transport.comment is defined %}
{{ transport.comment }}
#{% 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 %}
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
comment: {{ domain.comment }}
{% endif %}
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
{% endif %}
{{ "%-50s %s" | format(transport.destination, transport.relay) }}
{% endfor %}
{% endif %}