diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index 80d01445..8525ac62 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -769,7 +769,8 @@ def update_members(self, users, check_mode=False, append_members=False, self.cursor.execute(*self.q_builder.role_grant(user)) - self.role_impl.set_default_role_all(user) + if set_default_role_all: + self.role_impl.set_default_role_all(user) changed = True