From c802ee859ab777290622b66ce0dd7e37d9b872bb Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 18 Sep 2017 12:03:17 +0000 Subject: [PATCH] use host_ip for mysql access --- tasks/postfixadmin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/postfixadmin.yml b/tasks/postfixadmin.yml index 6be93b7..8bd4bc9 100644 --- a/tasks/postfixadmin.yml +++ b/tasks/postfixadmin.yml @@ -28,6 +28,6 @@ name: "{{postfix_postfixadmin_mysql_username}}" password: "{{postfix_postfixadmin_mysql_password}}" priv: "{{postfix_postfixadmin_mysql_database}}.*:SELECT" - host: "{{inventory_hostname}}" + host: "{{host_ip}}" state: present delegate_to: "{{postfix_postfixadmin_mysql_host}}"