diff --git a/README.md b/README.md index 239a769..fcd9285 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,9 @@ check_dovecot_quota: false **postfixmaps** ``` -# Should be '': *mapddict* +# Should be '': *list of maps* # for Example: postfixmaps: "/etc/postfix/virtual": + - 'test@example.com root@example.com' ``` diff --git a/defaults/main.yml b/defaults/main.yml index 7178fc1..10c0022 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,6 +12,7 @@ postfix: relay_domains: [] sender_dependent_relayhost_maps: '' virtual_alias_maps: '' + virtual_regex: [] virtual_mailbox_domains: [] mynetworks: [] mydestination: [] @@ -35,5 +36,4 @@ postfix: aliases: mailForwardingAddress mailboxes: mailMessageStore check_dovecot_quota: false - -postfixmaps: [] + postfixmaps: [] diff --git a/tasks/main.yml b/tasks/main.yml index b089628..f9d94b6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -61,6 +61,6 @@ template: src: maps.j2 dest: "{{ item }}" - with_items: "{{ postfixmaps }}" + with_items: "{{ postfix.postfixmaps }}" notify: - restart postfix diff --git a/templates/maps.j2 b/templates/maps.j2 index 6bdf93a..695a66b 100644 --- a/templates/maps.j2 +++ b/templates/maps.j2 @@ -1,3 +1,3 @@ -{% for i in postfixmaps[item] %} +{% for i in postfix.postfixmaps[item] %} {{ i }} {% endfor %}