From 73de99bbda156a1fe357295b97cc583269ab9ccc Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 24 Mar 2023 12:45:12 +0100 Subject: [PATCH] Add virtual domains via template --- templates/postfix/conf.d/virtual_domains.j2 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 templates/postfix/conf.d/virtual_domains.j2 diff --git a/templates/postfix/conf.d/virtual_domains.j2 b/templates/postfix/conf.d/virtual_domains.j2 new file mode 100644 index 0000000..394bb7a --- /dev/null +++ b/templates/postfix/conf.d/virtual_domains.j2 @@ -0,0 +1,7 @@ +# {{ ansible_managed }} + +{% if postfix_virtual_domains is defined %} +{% for domain in postfix_virtual_domains %} +{{ "%-50s %s" | format(domain.name, "#domain") }} +{% endfor %} +{% endif %}