Kathy_L
(Kathy L)
October 2, 2023, 12:26pm
1
I am using ansible core version 2.14.3. When I generate a username in the following fashion:
set_fact:
passwd: “{{ lookup(‘ansible.builtin.password’, ‘/dev/null’, chars=[‘ascii letters’, ‘digits’], length=range(10,15) | random ) }}”
I get usernames with colons in the middle of the password. This has worked for over 6 months and we are just now seeing this error. Can anyone see what I am doing wrong?
dnmvisser
(Dick Visser)
October 2, 2023, 1:25pm
2
No, but things don’t just change by themselves. If your invocation/task has not changed, the question becomes: what else has changed?
Something different, you specify ‘ascii letters’, but when i try that, it yields passwords with spaces in them. You might want to use ‘ascii_letters’.
utoddl
(Todd Lewis)
October 2, 2023, 1:59pm
3
Your ‘ascii letters’ should be ‘ascii_letters’ (with an underscore); maybe that’s throwing things off?
Kathy_L
(Kathy L)
October 2, 2023, 2:14pm
4
Sorry, that was a typo on my part. The real text was ascii_letters. Darn fat fingering.