From bddcf737c995c04fbc2dc2ee7289199d4dc9efa3 Mon Sep 17 00:00:00 2001 From: Josh Rendek Date: Sun, 22 Nov 2015 23:09:15 -0500 Subject: [PATCH] Fix quote on grants of more than one word Fixed a quote location on the grants composed of more than one word. Current docs will raise an error with a invalid privilege command. --- lib/ansible/modules/database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index d511b808131..0ff144f8670 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -128,7 +128,7 @@ EXAMPLES = """ - mysql_user: name=sally host_all=yes state=absent # Specify grants composed of more than one word -- mysql_user: name=replication password=12345 priv=*.*:"REPLICATION CLIENT" state=present +- mysql_user: name=replication password=12345 priv="*.*:REPLICATION CLIENT" state=present # Revoke all privileges for user 'bob' and password '12345' - mysql_user: name=bob password=12345 priv=*.*:USAGE state=present