WIP: Test creation of relay domains
This commit is contained in:
parent
abbc03c164
commit
6d4ba2caea
1 changed files with 16 additions and 6 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue