ansible.builtin.password generating invalid passwords

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?

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’.

Your ‘ascii letters’ should be ‘ascii_letters’ (with an underscore); maybe that’s throwing things off?

Sorry, that was a typo on my part. The real text was ascii_letters. Darn fat fingering.