From d354caf1aafa091cf2aed291b6c10beb3d5cec8c Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 26 Dec 2024 15:43:07 +0100 Subject: [PATCH] feat(editor_vscode): handle deb package install Signed-off-by: Matej Focko --- roles/editor_vscode/tasks/install_Debian.yml | 1 + roles/editor_vscode/tasks/install_Ubuntu.yml | 1 + roles/editor_vscode/tasks/install_deb.yml | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 120000 roles/editor_vscode/tasks/install_Debian.yml create mode 120000 roles/editor_vscode/tasks/install_Ubuntu.yml create mode 100644 roles/editor_vscode/tasks/install_deb.yml diff --git a/roles/editor_vscode/tasks/install_Debian.yml b/roles/editor_vscode/tasks/install_Debian.yml new file mode 120000 index 0000000..38e6c00 --- /dev/null +++ b/roles/editor_vscode/tasks/install_Debian.yml @@ -0,0 +1 @@ +install_deb.yml \ No newline at end of file diff --git a/roles/editor_vscode/tasks/install_Ubuntu.yml b/roles/editor_vscode/tasks/install_Ubuntu.yml new file mode 120000 index 0000000..38e6c00 --- /dev/null +++ b/roles/editor_vscode/tasks/install_Ubuntu.yml @@ -0,0 +1 @@ +install_deb.yml \ No newline at end of file diff --git a/roles/editor_vscode/tasks/install_deb.yml b/roles/editor_vscode/tasks/install_deb.yml new file mode 100644 index 0000000..be7a3fd --- /dev/null +++ b/roles/editor_vscode/tasks/install_deb.yml @@ -0,0 +1,11 @@ +--- +- name: Resolve URL to the VSCode RPM + ansible.builtin.uri: + url: https://code.visualstudio.com/sha/download?build=insider&os=linux-deb-x64 + register: _vscode_deb_response + +- name: Install VSCode via DEB package + ansible.builtin.apt: + deb: "{{ _vscode_deb_response.url }}" + state: present + become: true