Ansible Role: Visual Studio Code Extensions
Role to install extensions for the Visual Studio Code IDE / text editor.
Ansible >= 2.0
- Xenial (16.04)
Note: other versions are likely to work but have not been tested.
- Consider MacOSX 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 name of the group for user files and folders (leave as null to use default # value). Defaults to `users` on SUSE, `admin` on MacOSX and the username on all # other OSs / distributions. visual_studio_code_extensions_user_group_name: null # Users to install extensions for users:  # List of extensions to be uninstalled for a particular user # Defaults to empty list # value can be specified as shown below # visual_studio_code_extensions_absent: # - ms-vscode.csharp visual_studio_code_extensions_absent: 
Users are configured as follows:
users: - username: # Unix user name visual_studio_code_extensions: - # extension 1 - # extension 2
- hosts: servers roles: - role: gantsign.visual-studio-code-extensions users: - username: vagrant visual_studio_code_extensions: - streetsidesoftware.code-spell-checker - wholroyd.jinja - donjayamanne.python visual_studio_code_extensions_absent: - streetsidesoftware.code-spell-checker
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:
To run the role (i.e. the
tests/test.yml playbook), and test the results
tests/test_role.py), execute the following command from the project root
(i.e. the directory with
molecule.yml in it):
GantSign Ltd. Company No. 06109112 (registered in England)