How Do You Troubleshoot the Ansible Error “Only one –vault-id can be used for encryption.”?

Problem scenario
You try to run ansible-vault, but you get this error:
"ERROR! Only one --vault-id can be used for encryption.  This includes passwords from configuration and cli."  You want a fast solution, and you have complete control of the Ansible server. You do not need to use encryption or decryption for your Ansible operation(s).  What should you do?

Modify the ansible.cfg file. Comment out a stanza like this:

# vault_password_file = ~/.vault_pass.txt

If there is no leading pound "#" mark, add one to comment it out

Leave a comment

Your email address will not be published. Required fields are marked *