mysql_role: don't add members to a role when creating the role and "detach_members: true" is set, add integration test

This commit is contained in:
Felix Hamme 2022-05-20 09:47:15 +02:00
commit 394a7bbae1
3 changed files with 30 additions and 0 deletions

View file

@ -1067,6 +1067,8 @@ def main():
if not role.exists:
if subtract_privs:
priv = None # avoid granting unwanted privileges
if detach_members:
members = None # avoid adding unwanted members
changed = role.add(members, priv, module.check_mode, admin,
set_default_role_all)