Hi All,
How we can add the hidden password in Ansible ?
For eg :
- name: Download image files
get_url:
url: http://0.0.0.0/XYZ.tar.gz
url_username:XYZ
url_password: ********* (I want to add hidden password here. )
Can you please let me know if you have any idea .
Thanks,
Vaishnavi
Have you considered using secrets?
Maybe vault os what you need:
https://docs.ansible.com/ansible/latest/user_guide/vault.html
A sexta, 22/10/2021, 10:50, vaishnavi kakad <vaishnavikakad04@gmail.com> escreveu:
Hi All,
I don’t want to use encryption and decryption . Whatever I typed in url_password it will show in star(*) format. Is it possible to write ?
Thanks,
vk
Are you saying that you wish to put a visible password into the text of a
playbook?
If so, what do you mean by "hidden"?
Alternatively, are you saying that you wish to put something into a playbook
which cannot be read as a password (so, the password is "hidden"), but which
Ansible can use in order to authenticate?
If so, where do you expect to put the real password, so that Ansible knows
what it is?
Antony.