dimanche 13 février 2022

How to create a random string and use it in jinja in Ansible

I would like to create a random string in Ansible tasks and use it in jinja2.
The string should contain 0-9, a-z, A-Z with a length of 32 characters.

I found out this function but can't use it in a set_fact

lookup('community.general.random_string', length=12)



Aucun commentaire:

Enregistrer un commentaire