Skip to content

Commit af83c9b

Browse files
authored
Merge pull request #20 from Zuehlke/feature/improve-vscode-download
Cache downloading of vscode .deb package
2 parents 9b43cd6 + 7ca2236 commit af83c9b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

roles/vscode/tasks/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
---
22

3-
- name: Install VSCode version 1.57.1 from .deb package
3+
- name: Download VSCode version {{ vscode_version }} .deb package
4+
get_url:
5+
url: https://update.code.visualstudio.com/{{ vscode_version }}/linux-deb-x64/stable
6+
checksum: "sha256:{{ vscode_sha256sum }}"
7+
dest: "{{ download_cache_dir }}/vscode-{{ vscode_version }}.deb"
8+
force: no
9+
10+
- name: Install VSCode version {{ vscode_version }} from .deb package
411
apt:
5-
deb: https://update.code.visualstudio.com/1.57.1/linux-deb-x64/stable
12+
deb: "{{ download_cache_dir }}/vscode-{{ vscode_version }}.deb"
613
state: present
714

815
- name: List VSCode Extensions

roles/vscode/vars/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
---
2+
vscode_version: 1.57.1
3+
vscode_sha256sum: a5a50ec014b27656c198e560796f3b41180f3bdb0c19f0005193f79ed47fc8b8
4+
25
vscode_extensions:
36
- zbr.vscode-ansible

0 commit comments

Comments
 (0)