I am using Ansible to run a python script with parameters. One of these parameters are a user password
script: "{{ path_to_setup_py }} --username {{ username }} --password {{ password }} --ip {{ ip }} --hostname {{ hostname }}"
This is able to pull everything but the password, the password is a user input that is then encrypted.
name: password
prompt: Enter your password
private: yes
encrypt: sha512_crypt
confirm: yes
salt_size: 7
When the python script is ran, the password comes up as the hash value and doesn't use the actual password. How would I get this to decrypt the hash and then run it on the script?
Any help would be appreciated, I am a beginner.