@@ -1,10 +1,11 @@ | |||||
mailname: "{{inventory_hostname}}" | mailname: "{{inventory_hostname}}" | ||||
postfix_method: false | |||||
postfix_method: postfixadmin | |||||
postfix_smtp_service: true | postfix_smtp_service: true | ||||
postfix_submission_service: false | postfix_submission_service: false | ||||
postfix_postfixadmin_mysql_host: localhost | |||||
postfix_postfixadmin_mysql_database: postfixadmin | postfix_postfixadmin_mysql_database: postfixadmin | ||||
postfix_postfixadmin_mysql_username: postfix | postfix_postfixadmin_mysql_username: postfix | ||||
@@ -14,7 +15,7 @@ postfix_check_spamhaus: false | |||||
postfix_with_opendkim: false | postfix_with_opendkim: false | ||||
postfix_with_opendmarc: false | postfix_with_opendmarc: false | ||||
postfix_virtual_transport: virtual # lmtp:unix:private/dovecot-lmtp | |||||
postfix_virtual_transport: lmtp:unix:private/dovecot-lmtp | |||||
postfix_submission_service_smtpd_sasl_path: private/auth | postfix_submission_service_smtpd_sasl_path: private/auth | ||||
@@ -8,7 +8,7 @@ | |||||
- name: postfix sql map directory | - name: postfix sql map directory | ||||
file: | file: | ||||
path: /etc/postfix/sql/ | |||||
path: /etc/postfix/postfixadmin-sql/ | |||||
state: directory | state: directory | ||||
mode: u=rwx,g=rx,o= | mode: u=rwx,g=rx,o= | ||||
group: postfix | group: postfix | ||||
@@ -34,6 +34,6 @@ | |||||
name: "{{postfix_postfixadmin_mysql_username}}" | name: "{{postfix_postfixadmin_mysql_username}}" | ||||
password: "{{postfix_postfixadmin_mysql_password}}" | password: "{{postfix_postfixadmin_mysql_password}}" | ||||
priv: "{{postfix_postfixadmin_mysql_database}}.*:SELECT" | priv: "{{postfix_postfixadmin_mysql_database}}.*:SELECT" | ||||
host: "{{host_ip}}" | |||||
host: "{{postfix_postfixadmin_mysql_host}}" | |||||
state: present | state: present | ||||
delegate_to: "{{postfix_postfixadmin_mysql_host}}" | |||||
delegate_to: "{{(postfix_postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,postfix_postfixadmin_mysql_host)}}" |