From 10058076dccc36912dfb68f506ef0afd112b67ae Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 24 Aug 2021 19:10:41 +0200 Subject: [PATCH] install vscode from the deb otherwise I get the repository twice --- tasks/main.yml | 11 +++++------ vars/main.yml | 2 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6bf285e..9f3a97a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,15 +26,14 @@ url: "https://packages.microsoft.com/keys/microsoft.asc" state: present -- name: "Add repository for Visual Studio Code" - apt_repository: - repo: "deb [arch=amd64] https://packages.microsoft.com/repos/code stable main" - state: present +- name: "Download VSCode" + get_url: + url: "{{ vscode_url }}" + dest: /tmp/vscode.deb - name: "Install Visual Studio Code" apt: - name: "code" - update_cache: yes + deb: /tmp/vscode.deb - name: "Copy the MPV config" copy: diff --git a/vars/main.yml b/vars/main.yml index 1360a34..531b77e 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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 +vscode_url: https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64 + packages: - baobab - calibre