|
|
@@ -33,32 +33,12 @@ |
|
|
|
- conf.d/10-master.conf |
|
|
|
- conf.d/10-mail.conf |
|
|
|
- conf.d/10-auth.conf |
|
|
|
- conf.d/auth-sql.conf.ext |
|
|
|
- dovecot-sql.conf.ext |
|
|
|
- conf.d/auth-{{dovecot_auth}}.conf.ext |
|
|
|
- conf.d/10-ssl.conf |
|
|
|
- conf.d/20-lmtp.conf |
|
|
|
- conf.d/90-plugin.conf |
|
|
|
notify: |
|
|
|
- reload dovecot |
|
|
|
|
|
|
|
- name: postfixadmin mysql user |
|
|
|
mysql_user: |
|
|
|
name: "{{dovecot_postfixadmin_mysql_username}}" |
|
|
|
password: "{{dovecot_postfixadmin_mysql_password}}" |
|
|
|
priv: "{{dovecot_postfixadmin_mysql_database}}.*:SELECT" |
|
|
|
host: "{{inventory_hostname}}" |
|
|
|
state: present |
|
|
|
delegate_to: "{{dovecot_postfixadmin_mysql_host}}" |
|
|
|
|
|
|
|
- name: configuration pull directory |
|
|
|
local_action: file |
|
|
|
args: |
|
|
|
path: ~/host_files/{{inventory_hostname}}/etc |
|
|
|
state: directory |
|
|
|
|
|
|
|
- name: pull configuration |
|
|
|
synchronize: |
|
|
|
src: /etc/dovecot |
|
|
|
dest: ~/host_files/{{inventory_hostname}}/etc/ |
|
|
|
mode: pull |
|
|
|
recursive: true |
|
|
|
- import_tasks: sql.yaml |
|
|
|
when: "{{ dovecot_auth == 'sql' }}" |