mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
mysql_user: improve check_implicit_admin parameter's documentation (#220)
This commit is contained in:
parent
5874c89cf7
commit
cb535e9718
1 changed files with 13 additions and 0 deletions
|
@ -80,6 +80,7 @@ options:
|
|||
check_implicit_admin:
|
||||
description:
|
||||
- Check if mysql allows login as root/nopassword before trying supplied credentials.
|
||||
- If success, passed I(login_user)/I(login_password) will be ignored.
|
||||
type: bool
|
||||
default: no
|
||||
update_password:
|
||||
|
@ -194,6 +195,18 @@ EXAMPLES = r'''
|
|||
name: sally
|
||||
state: absent
|
||||
|
||||
# check_implicit_admin example
|
||||
- name: >
|
||||
Ensure no user named 'sally'@'localhost' exists, also passing in the auth credentials.
|
||||
If mysql allows root/nopassword login, try it without the credentials first.
|
||||
If it's not allowed, pass the credentials.
|
||||
mysql_user:
|
||||
check_implicit_admin: yes
|
||||
login_user: root
|
||||
login_password: 123456
|
||||
name: sally
|
||||
state: absent
|
||||
|
||||
- name: Ensure no user named 'sally' exists at all
|
||||
mysql_user:
|
||||
name: sally
|
||||
|
|
Loading…
Reference in a new issue