-
Story
-
Resolution: Done
-
Minor
-
DO374 - RHAAP2.2-en-1-20230131
-
None
-
7
-
ROLE
-
en-US (English)
URL: https://role.rhu.redhat.com/rol-rhu/app/courses/do374-2.2/pages/ch07s04
Reporter RHNID: ctiwary@redhat.com
Section: 4 - Guided Exercise: Templating External Data Using Lookups
Language: en-US (English)
Workaround:
Description: Ch7 S04, there is an example given for the ansible.builtin.password lookup plugin.
Although it may work as written, the given syntax will not provide the expected result of a password of a specific length. It should be updated to match the plugin documentation with correct syntax. password_plain: "{{ lookup('ansible.builtin.password', 'credentials/' + item + ' length=9') }}" VS password_plain: "{{ lookup('ansible.builtin.password', 'credentials/' + item, length=9') }}"
In the corrected syntax, the length parameter is placed inside the lookup function, separated by a comma. This aligns with the plugin documentation and ensures that the password generated will have the specified length of 9 characters.