diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-06 15:59:39 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:08 +0800 |
commit | 35fba2ec5aa5a4f61ed4e8d805fab294549daa13 (patch) | |
tree | 9cf7d333ab0d57eac953aa6fe9f2c56f740bcb63 /roles/mail/tasks | |
parent | f1ef586370fda462cb2022f401b2fb7f7e88232e (diff) | |
download | ansible-dfly-vps-35fba2ec5aa5a4f61ed4e8d805fab294549daa13.tar.bz2 |
mail/dovecot: generate passwd from template
Diffstat (limited to 'roles/mail/tasks')
-rw-r--r-- | roles/mail/tasks/main.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index c0f3d4f..9718db9 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -92,17 +92,21 @@ -exec sievec '{}' ';' tags: dovecot -- name: dovecot - copy passwd - copy: - src: "{{ playbook_dir }}/private/dovecot/passwd" +- name: dovecot - include passdb vars file + include_vars: "{{ playbook_dir }}/private/dovecot/passdb.yml" + tags: dovecot + +- name: dovecot - generate passwd + template: + src: dovecot/passwd.j2 dest: /usr/local/etc/dovecot/passwd group: dovecot mode: 0440 tags: dovecot -- name: opendkim - generate config file +- name: dovecot - generate config file template: - src: dovecot.conf.j2 + src: dovecot/dovecot.conf.j2 dest: /usr/local/etc/dovecot/dovecot.conf notify: reload-dovecot tags: dovecot |