From 05faeecc5d9a9e1303a15bf58c2243fdfbfe3f94 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 1 Sep 2014 12:41:56 +0300 Subject: [PATCH] roles/mariadb: Quote the password in .my.conf template Ansible's mysql module can get this password and connect fine, but `mysql` on the command line chokes if the password is slightly complicated and is not quoted. Signed-off-by: Alan Orth --- roles/mariadb/templates/.my.cnf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mariadb/templates/.my.cnf.j2 b/roles/mariadb/templates/.my.cnf.j2 index 0a8e76c..efe928d 100644 --- a/roles/mariadb/templates/.my.cnf.j2 +++ b/roles/mariadb/templates/.my.cnf.j2 @@ -1,3 +1,3 @@ [client] user=root -password={{ mariadb_root_password }} +password='{{ mariadb_root_password }}'