From 47b009b00157e63ab277f8b60f9ebbc12c6482f2 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 26 Nov 2014 08:26:53 -0800 Subject: [PATCH] Add a bare grant to the list of allowed privileges --- lib/ansible/modules/database/mysql/mysql_user.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 3fac5bc2759..9bb1d7be4c7 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -151,13 +151,13 @@ except ImportError: else: mysqldb_found = True -VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT OPTION', 'LOCK TABLES', - 'REFERENCES', 'EVENT', 'ALTER', 'DELETE', 'INDEX', - 'INSERT', 'SELECT', 'UPDATE', +VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION', + 'LOCK TABLES', 'REFERENCES', 'EVENT', 'ALTER', + 'DELETE', 'INDEX', 'INSERT', 'SELECT', 'UPDATE', 'CREATE TEMPORARY TABLES', 'TRIGGER', 'CREATE VIEW', 'SHOW VIEW', 'ALTER ROUTINE', 'CREATE ROUTINE', - 'EXECUTE', 'FILE', 'CREATE USER', 'PROCESS', 'RELOAD', - 'REPLICATION CLIENT', 'REPLICATION SLAVE', + 'EXECUTE', 'FILE', 'CREATE USER', 'PROCESS', + 'RELOAD', 'REPLICATION CLIENT', 'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN', 'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE',))