Update password.py (#63965)
Update the examples of the password lookup plugin to show how multiple options are joined together.
This commit is contained in:
parent
ae2a27ad6a
commit
92daec5d0b
1 changed files with 2 additions and 2 deletions
|
@ -73,10 +73,10 @@ EXAMPLES = """
|
||||||
password: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}"
|
password: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}"
|
||||||
priv: '{{ client }}_{{ tier }}_{{ role }}.*:ALL'
|
priv: '{{ client }}_{{ tier }}_{{ role }}.*:ALL'
|
||||||
|
|
||||||
- name: create a mysql user with a random password using only digits
|
- name: create a mysql user with an 8 character random password using only digits
|
||||||
mysql_user:
|
mysql_user:
|
||||||
name: "{{ client }}"
|
name: "{{ client }}"
|
||||||
password: "{{ lookup('password', '/tmp/passwordfile chars=digits') }}"
|
password: "{{ lookup('password', '/tmp/passwordfile length=8 chars=digits') }}"
|
||||||
priv: "{{ client }}_{{ tier }}_{{ role }}.*:ALL"
|
priv: "{{ client }}_{{ tier }}_{{ role }}.*:ALL"
|
||||||
|
|
||||||
- name: create a mysql user with a random password using many different char sets
|
- name: create a mysql user with a random password using many different char sets
|
||||||
|
|
Loading…
Reference in a new issue