Add an untested method for installing VisualStudio
This commit is contained in:
parent
1d738751a2
commit
1a6e73aefb
4
roles/visualstudio/handlers/main.yml
Normal file
4
roles/visualstudio/handlers/main.yml
Normal 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 '{}' ';'
|
4
roles/visualstudio/tasks/main.yml
Normal file
4
roles/visualstudio/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: main_win.yml
|
||||||
|
when: ansible_connection == 'winrm'
|
||||||
|
- import_tasks: main_lin.yml
|
||||||
|
when: ansible_connection == 'ssh'
|
2
roles/visualstudio/tasks/main_lin.yml
Normal file
2
roles/visualstudio/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
- name: Do not install VisualStudio on Linux
|
||||||
|
debug: Do not install VisualStudio on Linux
|
5
roles/visualstudio/tasks/main_win.yml
Normal file
5
roles/visualstudio/tasks/main_win.yml
Normal 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
|
Loading…
Reference in a new issue