ansible-role-postfix/templates/postfix/conf.d/transport_relay.j2
phil 8c79f8b687 Use Ansible defaults to insert comments
Enable vscodium code highlighting for some files
2024-03-27 17:39:16 +01:00

26 lines
661 B
Django/Jinja

{{ ansible_managed | comment }}
{% if postfix_domains is defined %}
{% for domain in postfix_domains %}
{% if domain.type == "relay" %}
{% if domain.comment is defined %}
# {{ domain.comment }}
{% endif %}
{% if domain.relay is defined %}
{% for relay in domain.relay %}
{{ "%-60s %s" | format(relay.src | default( domain.name ), relay.dest) }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if postfix_transport_relay_domains is defined %}
{% for domain in postfix_transport_relay_domains %}
{% if domain.comment is defined %}
# {{ domain.comment }}
{% endif %}
{{ "%-60s %s" | format(domain.name, domain.relay) }}
{% endfor %}
{% endif %}