What is Ansible Vault?
BeginnerConceptVault, Privilege Escalation and Error Handling
Answer
Vault encrypts sensitive data, such as passwords, API keys and certificates, so it can be committed to Git next to the rest of your automation. Ansible decrypts it in memory at run time when it is given the vault password.
It protects secrets at rest in the repository. It is not a secrets manager: there is no rotation, access auditing or per-user policy, which is why larger teams combine it with HashiCorp Vault, AWS Secrets Manager or AAP credentials.
More on Vault, Privilege Escalation and Error Handling
Which `ansible-vault` commands do you use day to day?BeginnerHow do you supply the vault password when running a playbook?BeginnerWhat is `encrypt_string` and when is it better than encrypting a whole file?IntermediateWhat are vault IDs and why use them?AdvancedHow is Vault data encrypted and what does the file look like?AdvancedHow do you rotate a vault password?Intermediate