diff --git a/tasks/main.yml b/tasks/main.yml index 8aa036c..4f3667b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -67,7 +67,7 @@ when: mysql_users|lower() != 'none' - name: Create the replication users - mysql_user: name={{ item.name }} host="%" password={{ item.pass|default("foobar") }} + mysql_user: name={{ item.name }} host={{ item.host|default('"%"') }} password={{ item.pass|default("foobar") }} priv=*.*:"REPLICATION SLAVE" state=present with_items: mysql_repl_user when: mysql_repl_role == 'master'