|
|
@@ -3,7 +3,7 @@ |
|
|
|
- name: dovecot sql config |
|
|
|
template: |
|
|
|
src: dovecot-sql.conf.ext.j2 |
|
|
|
dest: /etc/dovecot/dovecot-sql.conf.ext.j2 |
|
|
|
dest: /etc/dovecot/dovecot-sql.conf.ext |
|
|
|
notify: |
|
|
|
- reload dovecot |
|
|
|
|
|
|
@@ -12,6 +12,6 @@ |
|
|
|
name: "{{dovecot_postfixadmin_mysql_username}}" |
|
|
|
password: "{{dovecot_postfixadmin_mysql_password}}" |
|
|
|
priv: "{{dovecot_postfixadmin_mysql_database}}.*:SELECT" |
|
|
|
host: "{{inventory_hostname}}" |
|
|
|
host: "{{dovecot_postfixadmin_mysql_host}}" |
|
|
|
state: present |
|
|
|
delegate_to: "{{dovecot_postfixadmin_mysql_host}}" |
|
|
|
delegate_to: "{{(dovecot_postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,dovecot_postfixadmin_mysql_host)}}" |