From 92daec5d0bce5dfbb73fda52910de2a74d59fa7e Mon Sep 17 00:00:00 2001 From: bontreger Date: Tue, 29 Oct 2019 11:16:00 -0400 Subject: [PATCH] Update password.py (#63965) Update the examples of the password lookup plugin to show how multiple options are joined together. --- lib/ansible/plugins/lookup/password.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/password.py b/lib/ansible/plugins/lookup/password.py index 3ebe120be9e..41cc3a61c53 100644 --- a/lib/ansible/plugins/lookup/password.py +++ b/lib/ansible/plugins/lookup/password.py @@ -73,10 +73,10 @@ EXAMPLES = """ password: "{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}" 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: name: "{{ client }}" - password: "{{ lookup('password', '/tmp/passwordfile chars=digits') }}" + password: "{{ lookup('password', '/tmp/passwordfile length=8 chars=digits') }}" priv: "{{ client }}_{{ tier }}_{{ role }}.*:ALL" - name: create a mysql user with a random password using many different char sets