install vscode from the deb

otherwise I get the repository twice
This commit is contained in:
Andreas Zweili 2021-08-24 19:10:41 +02:00
parent b81db77586
commit 10058076dc
2 changed files with 7 additions and 6 deletions

View File

@ -26,15 +26,14 @@
url: "https://packages.microsoft.com/keys/microsoft.asc" url: "https://packages.microsoft.com/keys/microsoft.asc"
state: present state: present
- name: "Add repository for Visual Studio Code" - name: "Download VSCode"
apt_repository: get_url:
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/code stable main" url: "{{ vscode_url }}"
state: present dest: /tmp/vscode.deb
- name: "Install Visual Studio Code" - name: "Install Visual Studio Code"
apt: apt:
name: "code" deb: /tmp/vscode.deb
update_cache: yes
- name: "Copy the MPV config" - name: "Copy the MPV config"
copy: copy:

View File

@ -3,6 +3,8 @@ deploy_user_name: andreas
keeweb_url: https://github.com/keeweb/keeweb/releases/download/v1.18.7/KeeWeb-1.18.7.linux.x64.deb keeweb_url: https://github.com/keeweb/keeweb/releases/download/v1.18.7/KeeWeb-1.18.7.linux.x64.deb
vscode_url: https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64
packages: packages:
- baobab - baobab
- calibre - calibre