I'm trying to figure out how Ansible-Vault passwords would've been used in a production environment. I've watched countless of vidoes and tutorials on how to use "Ansible-Vault", they have all conclude with the same thing:
Encrypt your file with sensitive variables using
ansible-vault encrypt
Store your vault-password in a text file and use this when running the playbook:
ànsible-playbook --vault-password-file passwordFile myPlaybook.yml
The problems I don't seem to understand is:
The vault password in stored in plaintext which is a security issue
How do I integrate the password file into a script (if that is needed). If I encrypt the password file it creates new issues which need to be resolved.'
It's probably my ignorance, but to me all of it seems more like a hassle...
Thanks.