{"id":15878983,"url":"https://github.com/darkwizard242/ansible-role-vscode","last_synced_at":"2026-01-03T04:52:55.514Z","repository":{"id":42430901,"uuid":"443419347","full_name":"darkwizard242/ansible-role-vscode","owner":"darkwizard242","description":"Ansible role for 'VisualStudio Code'. Available on Ansible Galaxy. ","archived":false,"fork":false,"pushed_at":"2024-07-02T21:26:15.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T05:23:59.219Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","linux","microsoft","visual-studio-code","vscode"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/vscode","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkwizard242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-31T20:16:38.000Z","updated_at":"2024-07-02T21:26:05.000Z","dependencies_parsed_at":"2024-10-27T10:04:07.213Z","dependency_job_id":"d5d4554e-a033-47f6-979e-84d4bfd0090a","html_url":"https://github.com/darkwizard242/ansible-role-vscode","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-vscode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806032,"owners_count":20350773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","linux","microsoft","visual-studio-code","vscode"],"created_at":"2024-10-06T02:42:40.292Z","updated_at":"2026-01-03T04:52:55.470Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-vscode/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-vscode/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-vscode/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-vscode/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/vscode) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-vscode\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-vscode) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-vscode\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-vscode) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-vscode\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-vscode) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-vscode?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-vscode?color=orange\u0026style=flat-square)\n\n# Ansible Role: vscode\n\nRole to install (_by default_) [Visual Studio Code](https://code.visualstudio.com/docs) on **Debian/Ubuntu** family and **EL** family systems. Visual Studio Code is a lightweight but powerful source code editor\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables List:\n\n```yaml\nvscode_app_name: code\nvscode_desired_state: present\nvscode_repo_desired_state: present\n\n# For Debian/Ubuntu Family\nvscode_debian_pre_reqs:\n  - apt-transport-https\n  - curl\n  - ca-certificates\n  - lsb-release\n  - gnupg\nvscode_debian_pre_reqs_desired_state: present\nvscode_debian_gpg_key: https://packages.microsoft.com/keys/microsoft.asc\nvscode_debian_repo: \"deb [arch={{ ansible_architecture }}] https://packages.microsoft.com/repos/{{ vscode_app_name }} stable main\"\nvscode_debian_repo_when_x86_64: \"deb [arch=amd64] https://packages.microsoft.com/repos/{{ vscode_app_name }} stable main\"\nvscode_debian_repo_filename: vscode\n\n# For EL Family\nvscode_el_gpg_key: https://packages.microsoft.com/keys/microsoft.asc\nvscode_el_repo_name: code\nvscode_el_repo_description: Visual Studio Code\nvscode_el_repo: https://packages.microsoft.com/yumrepos/vscode\nvscode_el_repo_filename: vscode\nvscode_el_repo_gpgcheck: yes\nvscode_el_repo_enabled: yes\n```\n\n### Variables table:\n\nVariable                             | Description\n------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nvscode_app_name                      | Name of Visual Studio Code package i.e. `code`\nvscode_desired_state                 | State of the vscode_app_name package (i.e. `code` package itself.). Whether to install, verify if available or to uninstall (i.e. ansible apt module values: `present`, `latest`, or `absent`)\nvscode_repo_desired_state            | `present` indicates creating the repository file if it doesn't exist on Debian or EL based systems. Alternative is `absent` (not recommended as it will prevent from installation of **code** pacakge).\nvscode_debian_pre_reqs               | Package required by Visual Studio Code on Debain based systems.\nvscode_debian_pre_reqs_desired_state | State of the vscode_pre_reqs_debian_desired_state packages. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: `present`, `latest`, or `absent`)\nvscode_debian_gpg_key                | Visual Studio Code GPG required on Debian based systems.\nvscode_debian_repo                   | Repository URL for Debian based systems. Utilized facts such as `ansible_architecture`.\nvscode_debian_repo_when_x86_64       | This variable is used only against systems that are x86_64 type as the architecture is overridden to `arch=amd64` as per Visual Studio Code's Installation steps.\nvscode_debian_repo_filename          | Name of the repository file that will be stored at `/etc/apt/sources.list.d/` on Debian based systems. Defaults to `vscode`.\nvscode_el_gpg_key                    | Visual Studio Code GPG required on EL based systems.\nvscode_el_repo_name                  | Repository name for Visual Studio Code on EL based systems.\nvscode_el_repo_description           | Description to be added in EL based repository file for Visual Studio Code.\nvscode_el_repo                       | Repository `baseurl` for Visual Studio Code on EL based systems.\nvscode_el_repo_filename              | Name of the repository file that will be stored at `/etc/yum/sources.list.d/` on EL based systems. Defaults to `vscode`.\nvscode_el_repo_gpgcheck              | Boolean for whether to perform gpg check against Visual Studio Code on EL based systems.\nvscode_el_repo_enabled               | Boolean for whether to set Visual Studio Code repo as 'enabled' on EL based systems.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **vscode**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.vscode\n```\n\nFor customizing behavior of role (i.e. installation of latest **vscode**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.vscode\n  vars:\n    vscode_desired_state: latest\n```\n\nFor customizing behavior of role (i.e. un-installation of **vscode**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.vscode\n  vars:\n    vscode_desired_state: absent\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-vscode/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-vscode/lists"}