From 4f949f3bc7045f5192bcbe3df1728993944de613 Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Tue, 17 Jun 2014 12:57:29 +0200 Subject: [PATCH 1/2] ascii should be ascii_letters --- docsite/rst/playbooks_lookups.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docsite/rst/playbooks_lookups.rst b/docsite/rst/playbooks_lookups.rst index 5c8de0b051e..dbc85c14daa 100644 --- a/docsite/rst/playbooks_lookups.rst +++ b/docsite/rst/playbooks_lookups.rst @@ -73,7 +73,7 @@ Starting in version 1.4, password accepts a "chars" parameter to allow defining # create a mysql user with a random password using only ascii letters: - mysql_user: name={{ client }} - password="{{ lookup('password', '/tmp/passwordfile chars=ascii') }}" + password="{{ lookup('password', '/tmp/passwordfile chars=ascii_letters') }}" priv={{ client }}_{{ tier }}_{{ role }}.*:ALL # create a mysql user with a random password using only digits: @@ -83,7 +83,7 @@ Starting in version 1.4, password accepts a "chars" parameter to allow defining # create a mysql user with a random password using many different char sets: - mysql_user: name={{ client }} - password="{{ lookup('password', '/tmp/passwordfile chars=ascii,numbers,digits,hexdigits,punctuation') }}" + password="{{ lookup('password', '/tmp/passwordfile chars=ascii_letters,numbers,digits,hexdigits,punctuation') }}" priv={{ client }}_{{ tier }}_{{ role }}.*:ALL (...) From 8fe3678b608dedc801c10ebce445f6f8eba10323 Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Tue, 17 Jun 2014 12:58:07 +0200 Subject: [PATCH 2/2] Numbers is not a string module --- docsite/rst/playbooks_lookups.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/playbooks_lookups.rst b/docsite/rst/playbooks_lookups.rst index dbc85c14daa..3eb5ebb35cc 100644 --- a/docsite/rst/playbooks_lookups.rst +++ b/docsite/rst/playbooks_lookups.rst @@ -83,7 +83,7 @@ Starting in version 1.4, password accepts a "chars" parameter to allow defining # create a mysql user with a random password using many different char sets: - mysql_user: name={{ client }} - password="{{ lookup('password', '/tmp/passwordfile chars=ascii_letters,numbers,digits,hexdigits,punctuation') }}" + password="{{ lookup('password', '/tmp/passwordfile chars=ascii_letters,digits,hexdigits,punctuation') }}" priv={{ client }}_{{ tier }}_{{ role }}.*:ALL (...)