mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-29 01:11:46 -07:00
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:
parent
cc950cb53a
commit
394a7bbae1
3 changed files with 30 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue