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):