ansible-role-visual-studio-code-extensions icon indicating copy to clipboard operation
ansible-role-visual-studio-code-extensions copied to clipboard

reinstalling same extension stop ansible ansible

Open usrin opened this issue 4 years ago • 2 comments

by the first installation of extension, everything is fine, but if I rerun the playbook it failed to reinstall the extension. is there any way to prevent this failure, by using conditioning or a similar solution or workaround? in the python code you used code --install-extension --force as in [executable, --install-extension, --force] but even though I get the error when rerunning my playbook.

failed: [devel_lin] (item=developer: dbaeumer.vscode-eslint) => {"ansible_loop_var": "item", "changed": false, "item": [{"username": "developer"}, "dbaeumer.vscode-eslint"], "msg": "Error while upgrading extension [dbaeumer.vscode-eslint]: (0) Installing extensions...\nExtension 'dbaeumer.vscode-eslint' is already installed.\nbash: cannot set terminal process group (-1): Inappropriate ioctl for device\nbash: no job control in this shell\n"} thank you in advance :)

usrin avatar Apr 09 '21 10:04 usrin

Running into the same issue. Target system is Pop OS 20.04 (Ubuntu). Let me know if I can help gather any info.

shawngmc avatar Apr 14 '21 05:04 shawngmc

Can you still reproduce it on the current version with #138 on top?

If yes, post your playbook and output with -vvv.

C0rn3j avatar Feb 08 '24 22:02 C0rn3j