gantsign.visual-studio-code-extensions
Ansible Role: Visual Studio Code Extensions
This role helps you install extensions for the Visual Studio Code integrated development environment (IDE) or text editor.
Requirements
Ansible Core version 2.12 or higher.
Supported Operating Systems:
Linux
Debian Family
- Ubuntu:
- Focal (20.04)
- Jammy (22.04)
- Ubuntu:
RedHat Family
- Rocky Linux:
- 8
- Fedora:
- 35
- Rocky Linux:
SUSE Family
- openSUSE:
- 15.3
- openSUSE:
Note: Other versions might work but haven’t been tested.
macOS
- Support for macOS is experimental and not part of automated tests yet.
Role Variables
There are several variables that can change how this role works (default values are displayed below):
# The VS Code version you want to use:
# stable - https://code.visualstudio.com
# insiders - https://code.visualstudio.com/insiders/
# oss - https://github.com/microsoft/vscode/wiki/Differences-between-the-repository-and-Visual-Studio-Code
# Note: This role does not test code-oss binaries since Microsoft does not provide those.
# VSCodium is not supported by this role right now.
visual_studio_code_extensions_build: stable
# Specify the users to install extensions for
users: []
Users are set up like this:
users:
- username: # Name of the Unix user
# Extensions to install if they are not already present
visual_studio_code_extensions:
- # extension 1
- # extension 2
# Extensions to uninstall if they are present
visual_studio_code_extensions_absent:
- # extension 3
Example Playbook
- hosts: servers
roles:
- role: gantsign.visual-studio-code-extensions
users:
- username: vagrant
visual_studio_code_extensions:
- streetsidesoftware.code-spell-checker
- wholroyd.jinja
- ms-python.python
visual_studio_code_extensions_absent:
- seanmcbreen.Spell
More Roles From GantSign
You can find additional roles from GantSign on Ansible Galaxy.
Development & Testing
This project uses the following tools:
- Molecule for managing test scenarios
- Testinfra to test changes on the server
- pytest as the testing framework
- Tox to manage Python virtual environments for testing and linting
- pip-tools for handling dependencies
A Visual Studio Code Dev Container is available for developing and testing this role.
License
MIT License
Author Information
John Freeman
GantSign Ltd.
Company No. 06109112 (registered in England)
Informazioni sul progetto
Role for installing Visual Studio Code extensions.
Installa
ansible-galaxy install gantsign.visual-studio-code-extensions
Licenza
mit
Download
15.1k
Proprietario