mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 08:21:46 -07:00
mysql_role: add examples for "members_must_exist" argument
This commit is contained in:
parent
bf5086d19d
commit
27e1e95f7d
1 changed files with 20 additions and 0 deletions
|
@ -258,6 +258,26 @@ EXAMPLES = r'''
|
|||
subtract_privs: yes
|
||||
priv:
|
||||
'db1.*': DELETE
|
||||
|
||||
- name: add some members to a role and skip not-existent users
|
||||
community.mysql.mysql_role:
|
||||
state: present
|
||||
name: foo
|
||||
append_members: yes
|
||||
members_must_exist: no
|
||||
members:
|
||||
- 'existing_user@localhost'
|
||||
- 'not_existing_user@localhost'
|
||||
|
||||
- name: detach some members from a role and ignore not-existent users
|
||||
community.mysql.mysql_role:
|
||||
state: present
|
||||
name: foo
|
||||
detach_members: yes
|
||||
members_must_exist: no
|
||||
members:
|
||||
- 'existing_user@localhost'
|
||||
- 'not_existing_user@localhost'
|
||||
'''
|
||||
|
||||
RETURN = '''#'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue