ansible-vault

Encrypts & decrypts values, data structures and files within Ansible projects.

TLDR

Create a new encrypted vault file with a prompt for a password

>_ ansible-vault create [vault_file]
copy

Create a new encrypted vault file using a vault key file to encrypt it

>_ ansible-vault create --vault-password-file=[password_file] [vault_file]
copy

Encrypt an existing file using an optional password file

>_ ansible-vault encrypt --vault-password-file=[password_file] [vault_file]
copy

Encrypt a string using Ansible's encrypted string format, displaying interactive prompts

>_ ansible-vault encrypt_string
copy

View an encrypted file, using a password file to decrypt

>_ ansible-vault view --vault-password-file=[password_file] [vault_file]
copy

Re-key already encrypted vault file with a new password file

>_ ansible-vault rekey --vault-password-file=[old_password_file] --new-vault-password-file=[new_password_file] [vault_file]
copy

Copied to clipboard
free 100$ digital ocean credit