https://github.com/gantsign/ansible-role-visual-studio-code-extensions
Ansible role for installing Visual Studio Code extensions
https://github.com/gantsign/ansible-role-visual-studio-code-extensions
ansible ansible-role visual-studio-code vscode
Last synced: 3 months ago
JSON representation
Ansible role for installing Visual Studio Code extensions
- Host: GitHub
- URL: https://github.com/gantsign/ansible-role-visual-studio-code-extensions
- Owner: gantsign
- License: mit
- Created: 2016-11-04T14:10:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T01:17:51.000Z (12 months ago)
- Last Synced: 2025-03-22T03:51:13.402Z (3 months ago)
- Topics: ansible, ansible-role, visual-studio-code, vscode
- Language: Python
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/gantsign/visual-studio-code-extensions/
- Size: 736 KB
- Stars: 32
- Watchers: 4
- Forks: 17
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role: Visual Studio Code Extensions
===========================================[](https://github.com/gantsign/ansible-role-visual-studio-code-extensions/actions?query=workflow%3ATests)
[](https://galaxy.ansible.com/ui/standalone/roles/gantsign/visual-studio-code-extensions/)
[](https://raw.githubusercontent.com/gantsign/ansible-role-visual-studio-code-extensions/master/LICENSE)Role to install extensions for the
[Visual Studio Code](https://code.visualstudio.com) IDE / text editor.Requirements
------------* Ansible Core >= 2.12
* OS
* Linux
* Debian Family
* Ubuntu
* Focal (20.04)
* Jammy (22.04)* RedHat Family
* Rocky Linux
* 8
* Fedora
* 35
* SUSE Family
* openSUSE
* 15.3
* Note: other versions are likely to work but have not been tested.
* macOS
* Consider macOS support experimental as this time as it's not included
in the automated tests.Role Variables
--------------The following variables will change the behavior of this role (default values
are shown below):```yaml
# The VS Code build variant:
# 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
# Caution: since Microsoft doesn't distribute binaries for code-oss
# this role doesn't include tests for code-oss.
# Note: VSCodium is not presently supported by this role.
visual_studio_code_extensions_build: stable# Users to install extensions for
users: []
```Users are configured as follows:
```yaml
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
```Example Playbook
----------------```yaml
- 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](https://galaxy.ansible.com/ui/standalone/namespaces/2463/).Development & Testing
---------------------This project uses the following tooling:
* [Molecule](http://molecule.readthedocs.io/) for orchestrating test scenarios
* [Testinfra](http://testinfra.readthedocs.io/) for testing the changes on the
remote
* [pytest](http://docs.pytest.org/) the testing framework
* [Tox](https://tox.wiki/en/latest/) manages Python virtual
environments for linting and testing
* [pip-tools](https://github.com/jazzband/pip-tools) for managing dependenciesA Visual Studio Code
[Dev Container](https://code.visualstudio.com/docs/devcontainers/containers) is
provided for developing and testing this role.License
-------MIT
Author Information
------------------John Freeman
GantSign Ltd.
Company No. 06109112 (registered in England)