Currently we are using pwgen to generate our random length passwords, but 
we would like to use an Ansible module to make things easier.  What I have 
is not working - 

set_fact:
  user_password:  "{{ lookup('ansible.builtin.password', 
chars=['ascii_letters', 'digits'], length = {{ range(8-12)|random }} ) }}"

Of course it does not like a variable within a variable.  Is there another 
way to do this with an Ansible module that I am missing?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/51262064-7d5e-493a-a615-71cd3a0362e6n%40googlegroups.com.

Reply via email to