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

Fix conflict with apt installation

Open ltshb opened this issue 4 months ago • 4 comments

When vscode is updated via apt upgrade, it automatically creates a new apt source file in /etc/apt/sources.list.d/vscode.sources using the new apt format. This file then used the dearmor key in /usr/share/keyrings which conflict with the armored key specified in the /etc/apt/sources.list.d/vscode.list file that was created by ansible.

To avoid this conflict, I used the new apt format like mentioned in the vscode installation documentation: https://code.visualstudio.com/docs/setup/linux#_install-vs-code-on-linux

Also removed conflicting files.

This should solve #263

ltshb avatar Aug 04 '25 07:08 ltshb

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 04 '25 07:08 CLAassistant

Hi @freemanjp I think I can solve the issue #263 could you have a look at this PR ? Thanks

ltshb avatar Aug 04 '25 08:08 ltshb

It would be great to have this merged.

huyz avatar Aug 18 '25 08:08 huyz

As an alternative, an implementation via https://docs.ansible.com/ansible/latest/collections/ansible/builtin/deb822_repository_module.html might also help and could reduce boilerplate

MaKaNu avatar Sep 11 '25 10:09 MaKaNu