#encrypt a file
ansible-vault encrypt file_name
New Vault password:
Confirm New Vault password:
Encryption successful
#view encrypted files
ansible-vault view file_name
Vault password:
#edit encrypted files
ansible-vault edit file_name
Vault password:
#change password of encrypted files
ansible-vault rekey --ask-vault-pass file_name
Vault password:
New Vault password:
Confirm New Vault password:
Rekey successful
#decrypt files
ansible-vault decrypt --ask-vault-pass file_name
Vault password:
Decryption successful
#use vault password file
echo "password" > password_file
ansible-vault encrypt file_name --vault-password-file=password_file
Encryption successful
No comments:
Post a Comment