From df43829b66da9bd6eb4a711fbd36ef5844b4cea4 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 19 Apr 2023 13:20:11 +0200 Subject: [PATCH] Fixes --- templates/postfix/conf.d/canonical.j2 | 4 ++-- templates/postfix/conf.d/sender_canonical.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/postfix/conf.d/canonical.j2 b/templates/postfix/conf.d/canonical.j2 index 9b105b9..ca003e5 100644 --- a/templates/postfix/conf.d/canonical.j2 +++ b/templates/postfix/conf.d/canonical.j2 @@ -1,7 +1,7 @@ ### {{ ansible_managed }} -{% if postfix_canonical_maps is defined %} -{% for map in postfix_canonical_maps %} +{% if postfix_canonical is defined %} +{% for map in postfix_canonical %} {{ "%-30s %s" | format(map.src, map.dest) }} {% endfor %} {% endif %} diff --git a/templates/postfix/conf.d/sender_canonical.j2 b/templates/postfix/conf.d/sender_canonical.j2 index e56566d..8c2cd0b 100644 --- a/templates/postfix/conf.d/sender_canonical.j2 +++ b/templates/postfix/conf.d/sender_canonical.j2 @@ -1,7 +1,7 @@ ### {{ ansible_managed }} -{% if postfix_sender_canonical_maps is defined %} -{% for map in postfix_sender_canonical_maps %} +{% if postfix_sender_canonical is defined %} +{% for map in postfix_sender_canonical %} {{ "%-30s %s" | format(map.src, map.dest) }} {% endfor %} {% endif %}