From 916bf5acc7eb5f67ecd60fb482754e8e203ed56e Mon Sep 17 00:00:00 2001 From: UncertaintyP Date: Tue, 19 Feb 2019 15:26:58 +0100 Subject: [PATCH] Plugin mysql_user: add MySQL v8 privileges to valid privs (#51478) * Plugin mysql_user: add MySQL v8 privileges to valid privs * Unintentional underscores removed --- lib/ansible/modules/database/mysql/mysql_user.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 9b29471928c..12540007678 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -219,7 +219,16 @@ VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION', 'EXECUTE', 'FILE', 'CREATE TABLESPACE', 'CREATE USER', 'PROCESS', 'PROXY', 'RELOAD', 'REPLICATION CLIENT', 'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN', - 'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL')) + 'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL', + 'CREATE ROLE', 'DROP ROLE', 'APPLICATION PASSWORD ADMIN', + 'AUDIT ADMIN', 'BACKUP ADMIN', 'BINLOG ADMIN', + 'BINLOG ENCRYPTION ADMIN', 'CONNECTION ADMIN', + 'ENCRYPTION KEY ADMIN', 'FIREWALL ADMIN', 'FIREWALL USER', + 'GROUP REPLICATION ADMIN', 'PERSIST RO VARIABLES ADMIN', + 'REPLICATION SLAVE ADMIN', 'RESOURCE GROUP ADMIN', + 'RESOURCE GROUP USER', 'ROLE ADMIN', 'SET USER ID', + 'SESSION VARIABLES ADMIN', 'SYSTEM VARIABLES ADMIN', + 'VERSION TOKEN ADMIN', 'XA RECOVER ADMIN')) class InvalidPrivsError(Exception):