aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mail/tasks
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-07 18:15:08 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commit1988a3dea8297735e8a333548815f28bff509107 (patch)
tree1fcaf0b2ca73d7caa0bac54e493ee4b66e9402c6 /roles/mail/tasks
parent6a7dba0f8d6790a0ad51656cc1a6d5f992c8d79b (diff)
downloadansible-dfly-vps-1988a3dea8297735e8a333548815f28bff509107.tar.bz2
mail/dovecot: use both passdb and userdb files to support user aliases
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