Ansible Vault Editor logo

Ansible Vault Editor

v1.2.0

Encrypt, decrypt and edit Ansible Vault files and inline !vault values without leaving the editor. Works in VS Code and VSCodium.

Demo: encrypt a value, peek at it, edit decrypted, the save guard, rekey workspace and a decrypted diff

Features

Install

Search for Ansible Vault Editor in the Extensions view, or:

code --install-extension 5mdt.ansible-vault-editor
codium --install-extension 5mdt.ansible-vault-editor

Or download the latest .vsix from GitHub Releases and install it from disk:

code --install-extension ansible-vault-editor.vsix

Commands

None has a default key binding; every one can be bound.

Encrypt Selection or FileansibleVault.encrypt
Decrypt Block or FileansibleVault.decrypt
Toggle Encrypt/DecryptansibleVault.toggle
Encrypt FileansibleVault.encryptFile
Decrypt FileansibleVault.decryptFile
Toggle Encrypt/Decrypt FileansibleVault.toggleFile
Encrypt Values in FileansibleVault.encryptAllInFile
Decrypt All Values in FileansibleVault.decryptAllInFile
Peek Decrypted ValueansibleVault.peek
Edit DecryptedansibleVault.editDecrypted
RekeyansibleVault.rekey
Rekey WorkspaceansibleVault.rekeyWorkspace
Toggle Transparent MarkeransibleVault.toggleMarker
Forget Cached PasswordsansibleVault.forgetPasswords
Open Decrypted Staged ChangesansibleVault.openDecryptedStagedChanges
Open Decrypted ChangesansibleVault.openDecryptedChanges
Enable Decrypted git diffansibleVault.enableGitDiff
Disable Decrypted git diffansibleVault.disableGitDiff