Skip to content

dhoeric/vscode-ansible-vault

Repository files navigation

VSCode ansible-vault extension

Visual Studio Marketplace

VSCode extensions to encrypt/decrypt ansible-vault file, can toggle with ctrl+alt+0 inspired by https://github.com/sydro/atom-ansible-vault

Encryption demo

Usage

To read vault password file in your computer, you can specify the vault_password_file in ansible.cfg or through extension settings.

Requirements

  • Ansible

Extension Settings

This extension contributes the following settings:

  • ansibleVault.executable: Full path of ansible-vault executable (e.g. /usr/local/bin/ansible-vault)
  • ansibleVault.keyfile: Ansible-vault password file path (e.g. ~/.vault-pass.txt)
  • ansibleVault.keypass: Ansible-vault password text (e.g. GT6rAP7rxYzeFC1KtHVW)