classroom/roles/vscode/tasks/main_lin.yml

22 lines
672 B
YAML
Raw Normal View History

2023-09-11 20:30:48 +00:00
- 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 }}"
loop: "{{VSCode_Extensions}}"
notify: fix VS code extensions