2023-04-30 08:07:41 +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"
|
2022-09-28 10:55:23 +00:00
|
|
|
|
2022-09-24 00:13:49 +00:00
|
|
|
- name: Install VSCode
|
2023-04-30 08:07:41 +00:00
|
|
|
apt:
|
2022-09-24 00:13:49 +00:00
|
|
|
name: code
|
|
|
|
state: latest
|
2022-09-28 10:55:23 +00:00
|
|
|
|
2023-09-09 04:53:46 +00:00
|
|
|
- name: Include VS code extension list
|
|
|
|
include_vars: vscode_extensions.yml
|
|
|
|
|
2022-09-28 10:55:23 +00:00
|
|
|
- name: Install VS Code extensions
|
2023-04-30 08:07:41 +00:00
|
|
|
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}}"
|
2023-04-30 08:07:41 +00:00
|
|
|
notify: fix VS code extensions
|