From 28c7f9ca794320d2b0a53766ab28c62489f2c87d Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 24 Mar 2023 20:12:26 +0100 Subject: [PATCH] Fix relay template --- templates/postfix/conf.d/transport_relay.j2 | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/templates/postfix/conf.d/transport_relay.j2 b/templates/postfix/conf.d/transport_relay.j2 index 8bae9de..22349ca 100644 --- a/templates/postfix/conf.d/transport_relay.j2 +++ b/templates/postfix/conf.d/transport_relay.j2 @@ -1,19 +1,9 @@ ### {{ ansible_managed }} -#{% 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 %} +{% for domain in postfix_domains %} {% if domain.type == "relay" %} {% if domain.comment is defined %} - comment: {{ domain.comment }} +# {{ domain.comment }} {% endif %} {{ "%-50s %s" | format(domain.name, domain.relay_host) }} {% endif %}