From 65ac1a2b2d0f57f7f733139b3fe842776eabece7 Mon Sep 17 00:00:00 2001 From: Mikhail Yurasov Date: Thu, 21 Dec 2023 03:15:16 -0800 Subject: [PATCH] Make sure desktop dir exists --- src/ansible/roles/rdesktop/tasks/vscode.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ansible/roles/rdesktop/tasks/vscode.yml b/src/ansible/roles/rdesktop/tasks/vscode.yml index 5998684..40b7dd9 100644 --- a/src/ansible/roles/rdesktop/tasks/vscode.yml +++ b/src/ansible/roles/rdesktop/tasks/vscode.yml @@ -31,6 +31,15 @@ shell: code --install-extension ms-vscode-remote.vscode-remote-extensionpack become_user: "{{ ansible_user }}" +# make sure desktop directory exists +- name: Make sure desktop directory exists + file: + path: /home/{{ ansible_user }}/Desktop + state: directory + mode: 0755 + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" + # create a desktop shortcut for visual studio code - name: Create desktop shortcut for Visual Studio Code copy: