summaryrefslogtreecommitdiffstats
path: root/roles/out/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/out/tasks')
-rw-r--r--roles/out/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/out/tasks/main.yml b/roles/out/tasks/main.yml
index 96a557d..0e64443 100644
--- a/roles/out/tasks/main.yml
+++ b/roles/out/tasks/main.yml
@@ -12,6 +12,18 @@
notify:
- Reload Postfix
+- name: Copy the canonical maps
+ template: src=etc/postfix/canonical.j2
+ dest=/etc/postfix-{{ postfix_instance[inst].name }}/canonical
+ owner=root group=root
+ mode=0644
+
+- name: Compile the canonical maps
+ # no need to reload upon change, as cleanup(8) is short-running
+ postmap: cmd=postmap src=/etc/postfix-{{ postfix_instance[inst].name }}/canonical db=lmdb
+ owner=root group=root
+ mode=0644
+
- meta: flush_handlers
- name: Start Postfix