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