From 726fcaeca6dfdce9e2a759903e1fe0983c41faa0 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 24 Apr 2025 15:49:19 +0200 Subject: [PATCH] skip the PUBLIC role from the users migration example --- plugins/modules/mysql_info.py | 1 + .../targets/test_mysql_info/tasks/filter_users_info.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index a630f18..a4a2072 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -161,6 +161,7 @@ EXAMPLES = r''' - item.name != 'root' # In case you don't want to import admin accounts - item.name != 'mariadb.sys' - item.name != 'mysql' + - item.name != 'PUBLIC' # MariaDB roles are not supported ''' RETURN = r''' diff --git a/tests/integration/targets/test_mysql_info/tasks/filter_users_info.yml b/tests/integration/targets/test_mysql_info/tasks/filter_users_info.yml index 1396f0c..102bf59 100644 --- a/tests/integration/targets/test_mysql_info/tasks/filter_users_info.yml +++ b/tests/integration/targets/test_mysql_info/tasks/filter_users_info.yml @@ -290,7 +290,7 @@ - item.name != 'mysql.sys' - item.name != 'mysql.infoschema' - item.name != 'mysql.session' - + - item.name != 'PUBLIC' # MariaDB roles are not supported # ================================== Cleanup ============================