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 <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-09-16 23:09:06 +02:00
parent 272700e6e2
commit d61dcf3c00
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

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