mac user can install brew command:
brew install ansible
First, the existence of a fixed password file, such as ~ / .vault_pass.txt, easy to use.
If a configuration file variables.yml content has been encrypted using ansible, how to decrypt:
ansible-vault decrypt --vault-password-file ~/.vault_pass.txt variables.yml
How to encrypt a file:
ansible-vault encrypt --vault-password-file ~/.vault_pass.txt variables.yml