Add an untested method for installing VisualStudio

This commit is contained in:
polz 2024-03-08 16:08:03 +01:00
parent 1d738751a2
commit 1a6e73aefb
4 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# Mark everything in bin/ directories executable. Some extensions do
# this on activation, but non-root users don’t have permission for it.
- name: fix VS code extensions
command: find /usr/share/code/resources/app -name bin -exec chmod -R +x '{}' ';'

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,2 @@
- name: Do not install VisualStudio on Linux
debug: Do not install VisualStudio on Linux

View file

@ -0,0 +1,5 @@
- name: Install Microsoft Visual Studio
win_chocolatey:
name: visualstudio2022community
# Maybe sometime use https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 with the costlier version