aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mail/tasks')
-rw-r--r--roles/mail/tasks/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml
index d33ef1f..968dd2b 100644
--- a/roles/mail/tasks/main.yml
+++ b/roles/mail/tasks/main.yml
@@ -96,12 +96,15 @@
include_vars: "{{ playbook_dir }}/private/dovecot/passdb.yml"
tags: dovecot
-- name: dovecot - generate passwd
+- name: dovecot - generate passdb and userdb
template:
- src: dovecot/passwd.j2
- dest: /usr/local/etc/dovecot/passwd
+ src: dovecot/{{ item }}.j2
+ dest: /usr/local/etc/dovecot/{{ item }}
group: dovecot
mode: 0440
+ with_items:
+ - passdb
+ - userdb
tags: dovecot
- name: dovecot - generate config file