ansible workaround for Microsoft's aggressive repo management (users to opt-out of apt repository install)
Maintainers usually reply within 1 day
@ntrogh is already working on this.
Since Oct 10, 2025.
Assessment
This issue has not been assessed yet.
Description
If you want to follow https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions , and are using ansible to manage your PPAs, keyrings, etc -- then you really don't appreciate what Microsoft is doing here. See https://github.com/microsoft/vscode/issues/22145 .
Here's a quick workaround for anyone stumbling over this that is managing code (vscode) installation on Linux using ansible; Should be portable to other toolchains as well.
- name: Disable automatic Microsoft repository configuration for vscode
become: yes
ansible.builtin.debconf:
name: code
question: code/add-microsoft-repo
value: 'false'
vtype: boolean
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/debconf_module.html
(I created a NEW issue because all the prior ones related are LOCKED)
- Dominant language
- Markdown
- Stars
- 6.7k
- Forks
- 5.8k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 138
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-docs
-
triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/vscode-docs#10626 ·
Maintainers usually reply within 1 day
-
Agent plugin migration: gaps in package conversion, canvas discovery, and hook stdout guidancePossibly taken @jebakishore509-sys claimed this 12 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 54/100
microsoft/vscode-docs#10551 ·
Maintainers usually reply within 1 day
-
doc-enhancement
Difficulty 1/5 Under an hour Newbie friendliness 45/100
microsoft/vscode-docs#10526 · 1 reaction ·
Maintainers usually reply within 1 day
-
Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (span:nth-child(6)):A11y_code.visualstudio.com_AI4WMay be free again @ntrogh claimed this 38 days ago, and no pull request is open. Open
microsoft/vscode-docs#10424 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
idea
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/vscode-docs#10216 · 1 comment ·
Maintainers usually reply within 1 day