Ansible Role: Visual Studio Code Extensions
Role to install extensions for the Visual Studio Code IDE / text editor.
Ansible >= 2.6
- Xenial (16.04)
- Bionic (18.04)
Note: other versions are likely to work but have not been tested.
- Consider macOS support experimental as this time as it's not included in the automated tests.
The following variables will change the behavior of this role (default values are shown below):
# The VS Code build (either 'stable' or 'insiders') https://code.visualstudio.com/insiders/ visual_studio_code_extensions_build: stable # Users to install extensions for users: 
Users are configured as follows:
users: - username: # Unix user name # Extensions to be installed if not already present visual_studio_code_extensions: - # extension 1 - # extension 2 # Extensions to be uninstalled if not already absent visual_studio_code_extensions_absent: - # extension 3
- 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 more roles from GantSign on Ansible Galaxy.
Development & Testing
To develop or test you'll need to have installed the following:
Because the above can be tricky to install, this project includes Molecule Wrapper. Molecule Wrapper is a shell script that installs Molecule and it's dependencies (apart from Linux) and then executes Molecule with the command you pass it.
To test this role using Molecule Wrapper run the following command from the project root:
Note: some of the dependencies need
sudo permission to install.
GantSign Ltd. Company No. 06109112 (registered in England)