From d61dcf3c000b4bd7331d60c21c3ea7b154fc567d Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 16 Sep 2023 23:09:06 +0200 Subject: [PATCH] fix(vscode): use absolute path to the script Needed when using `become: true`, otherwise it defaults to the root's home directory. Signed-off-by: Matej Focko --- roles/user/editors/vscode/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/user/editors/vscode/tasks/main.yml b/roles/user/editors/vscode/tasks/main.yml index d6b7912..14e7ad5 100644 --- a/roles/user/editors/vscode/tasks/main.yml +++ b/roles/user/editors/vscode/tasks/main.yml @@ -35,7 +35,7 @@ - name: Install VSCode ansible.builtin.command: - cmd: bash ~/.local/bin/code-update.sh + cmd: bash /home/{{ target_user }}/.local/bin/code-update.sh creates: /opt/VSCode-linux-x64 become: true tags: install