Fix relay template
This commit is contained in:
parent
6d4ba2caea
commit
28c7f9ca79
1 changed files with 2 additions and 12 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue