add a check for visual studio code

This commit is contained in:
Andreas Zweili 2021-08-24 19:21:29 +02:00
parent 5fdad1f529
commit be3fd2396a
1 changed files with 5 additions and 0 deletions

View File

@ -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: