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}}"