From baea97d24c5ccd9118ba2ce1740b1c733d506784 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Thu, 11 Mar 2021 16:17:49 +0100 Subject: [PATCH] mysql_user: Add REPLICA MONITOR privilege to supported (#108) * mysql_user: Add REPLICA MONITOR privilege to supported * Add changelog fragment --- changelogs/fragments/108-mysql_priv_add_grant.yml | 2 ++ plugins/modules/mysql_user.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/108-mysql_priv_add_grant.yml diff --git a/changelogs/fragments/108-mysql_priv_add_grant.yml b/changelogs/fragments/108-mysql_priv_add_grant.yml new file mode 100644 index 0000000..4cfd00e --- /dev/null +++ b/changelogs/fragments/108-mysql_priv_add_grant.yml @@ -0,0 +1,2 @@ +bugfixes: +- mysql_user - add support for ``REPLICA MONITOR`` privilege (https://github.com/ansible-collections/community.mysql/issues/105). diff --git a/plugins/modules/mysql_user.py b/plugins/modules/mysql_user.py index c5a2011..773f4b9 100644 --- a/plugins/modules/mysql_user.py +++ b/plugins/modules/mysql_user.py @@ -340,7 +340,9 @@ VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION', 'REPLICATION MASTER ADMIN', 'REPLICATION SLAVE ADMIN', 'SET USER', - 'SHOW_ROUTINE',)) + 'SHOW_ROUTINE', + 'SLAVE MONITOR', + 'REPLICA MONITOR',)) class InvalidPrivsError(Exception):