Ansible variable lookupIntroductionThis extension will try to find the possible values for Ansible variables, by parsing the YAML files in your current workspace.
The extension features the following:
You can use the builtin way of work of VSCode: right click a variable and use the context menu/ use the shortcuts (F12, shift-F12 by default). Alternatively you can simply hover a variable to show the definition of a variable. If you want to stick to the builtin VSCode way of work you can disable the pop-up feature in the settings of this extension. An example of the optional pop-up: The extension will only activate itself if vscode detects a file with the language set to Once activated it will the pop-up and context menu's will be shown on the configured languages (default Ansible, YAML, jinja2), but this can be edited in the settings (go to vscode settings (cntrl+,) and search for 'Ansible Variable Lookup'). This extension is work in progress. Updates are automatically installed by VSCode. As Ansible does not enforce naming conventions and rules too strict, finding all variable values is actually quite hard and the code might miss a result. If you find any issues, please create an issue on the VSCode marketplace site, or on the GitLab project. I am building this extension as a hobby project, so please be friendly ;) Features
Requirements
Extension SettingsConfigure the extension using the vscode settings, search for 'Ansible Variable Lookup'. It allows the following:
Known Issues
Release NotesSee CHANGELOG.md for changes. ContributingSource can be found at gitlab Please make a merge request for changes. For bugs or other questions, feedback or appreciation, please use the QA section of the vscode marketplace. LICENSESome methods were created with help of ChatGPT 3.5 and Github Copilot. This extension makes use of the YAML library for parsing yml files See LICENSE.md |