1
0
mirror of https://github.com/ansible-collections/community.general.git synced 2025-08-12 23:02:47 +03:00

mysql_user: improve check_implicit_admin parameter's documentation (#220)

This commit is contained in:
Andrew Klychkov
2020-04-23 17:40:32 +03:00
committed by GitHub
parent 5874c89cf7
commit cb535e9718

View File

@@ -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