From 3f68263c79c3b3612e389758ba94b089faa8b81e Mon Sep 17 00:00:00 2001 From: Russell Clare Date: Mon, 6 Apr 2015 01:48:35 +0100 Subject: [PATCH] Adding variable reading for host entry for replication users --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'