Ansible Vault for Visual Studio Code
OverviewThe Ansible Vault VS Code Extension simplifies the encryption and decryption of Ansible Vault files within the Visual Studio Code environment. This extension empowers users to encrypt and decrypt text selections or entire files effortlessly, manage vault identities, and configure encryption settings directly within VS Code. DemonstrationFeatures
Usage
RequirementsThis extension only requires Visual Studio Code. It does not rely on Python or Ansible local packages for encryption and decryption. Installation
Configuration and CommandsConfiguration SettingsCustomize the behavior of the Ansible Vault extension by configuring the following properties in your
Available CommandsAccess the following commands from the Command Palette:
Menus and KeybindingsThe extension adds options to the context menus in the Explorer and Editor views and provides keybindings for quick access to Ansible Vault commands. CodelensInline helpers are available when you vault is encrypted. Your editor language bust be Utilization of Ansible ConfigurationThe extension locates ansible.cfg files in the project workspace and its parent directories to extract configuration settings related to Ansible Vault. It scans these files to find vault_password_file and vault_identity_list settings, which are then utilized for encryption and decryption. If the extension cannot find the specified path for the Ansible Vault password file, it will use on POSIX the following default paths:
Path Search AlgorithmThe extension employs a path search algorithm that starts from the current file's directory and traverses upwards until it finds an Configuration Settings ExtractionOnce an Additional Information
LicenseThis project is licensed under the MIT License - see the LICENSE.md file for details. |