From 1988a3dea8297735e8a333548815f28bff509107 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 7 Mar 2018 18:15:08 +0800 Subject: mail/dovecot: use both passdb and userdb files to support user aliases --- roles/mail/tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'roles/mail/tasks') 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 -- cgit v1.2.2