classroom/roles/linroom/tasks/vscode.yml

22 lines
672 B
YAML
Raw Permalink Normal View History

- name: Add VS repo key
apt_key:
url: https://packages.microsoft.com/keys/microsoft.asc
keyring: /etc/apt/trusted.gpg.d/microsoft.gpg
- name: Add VS repo url
apt_repository:
repo: "deb https://packages.microsoft.com/repos/vscode stable main"
- name: Install VSCode
apt:
name: code
state: latest
- name: Include VS code extension list
include_vars: vscode_extensions.yml
- name: Install VS Code extensions
command: code --no-sandbox --user-data-dir "/usr/share/code/resources/app" --extensions-dir "/usr/share/code/resources/app/extensions" --install-extension "{{ item }}"
2023-09-11 09:29:05 +00:00
loop: "{{VSCode_Extensions}}"
notify: fix VS code extensions