From be3fd2396aeb8a77f361f2e019d9c18fa236c620 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 24 Aug 2021 19:21:29 +0200 Subject: [PATCH] add a check for visual studio code --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index bb236df..8443b3f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,12 +22,17 @@ name: "nextcloud-desktop" state: present +- name: "Check if VSCode is installed" + apt: + name: code state: present + register: vscode_state - name: "Download VSCode" get_url: url: "{{ vscode_url }}" dest: /tmp/vscode.deb + when: vscode_state | bool - name: "Install Visual Studio Code" apt: