[FIX] broken vscode installation on Debian and Archlinux
This commit is contained in:
parent
6c4089870c
commit
e83253598f
|
@ -10,7 +10,7 @@
|
||||||
state: present
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- visual-studio-code
|
- code
|
||||||
- name: vscode - Basics - Additional dependencies
|
- name: vscode - Basics - Additional dependencies
|
||||||
package:
|
package:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
|
@ -18,10 +18,14 @@
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- plantuml
|
- plantuml
|
||||||
|
- name: vscode - Basics - Create settings directory
|
||||||
|
file:
|
||||||
|
path: "{{ ansible_user_dir }}/.config/Code/User"
|
||||||
|
state: directory
|
||||||
- name: vscode - Basics - Copy global settings
|
- name: vscode - Basics - Copy global settings
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/vscode-settings.json"
|
src: "{{ role_path }}/files/vscode-settings.json"
|
||||||
dest: ~/.config/Code/User/settings.json
|
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# Dev Env - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
|
|
|
@ -25,10 +25,14 @@
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- graphviz
|
- graphviz
|
||||||
|
- name: vscode - Basics - Create settings directory
|
||||||
|
file:
|
||||||
|
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
|
||||||
|
state: directory
|
||||||
- name: vscode - Basics - Copy global settings
|
- name: vscode - Basics - Copy global settings
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/vscode-settings.json"
|
src: "{{ role_path }}/files/vscode-settings.json"
|
||||||
dest: ~/Library/Application Support/Code/User/settings.json
|
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# Dev Env - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
|
|
|
@ -4,6 +4,17 @@
|
||||||
# Install Visual Studio Code and Set Basic Configuration
|
# Install Visual Studio Code and Set Basic Configuration
|
||||||
- name: vscode - Basics
|
- name: vscode - Basics
|
||||||
block:
|
block:
|
||||||
|
- name: vscode - Basics - Add Repo Key
|
||||||
|
become: yes
|
||||||
|
apt_key:
|
||||||
|
url: "https://packages.microsoft.com/keys/microsoft.asc"
|
||||||
|
state: present
|
||||||
|
- name: vscode - Basics - Add Repo
|
||||||
|
become: yes
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||||
|
filename: vscode
|
||||||
|
state: present
|
||||||
- name: vscode - Basics - Install
|
- name: vscode - Basics - Install
|
||||||
become: yes
|
become: yes
|
||||||
package:
|
package:
|
||||||
|
@ -11,7 +22,7 @@
|
||||||
state: present
|
state: present
|
||||||
vars:
|
vars:
|
||||||
packages:
|
packages:
|
||||||
- visual-studio-code
|
- code
|
||||||
- name: vscode - Basics - Additional dependencies
|
- name: vscode - Basics - Additional dependencies
|
||||||
become: yes
|
become: yes
|
||||||
package:
|
package:
|
||||||
|
@ -21,10 +32,14 @@
|
||||||
packages:
|
packages:
|
||||||
- plantuml
|
- plantuml
|
||||||
- graphviz
|
- graphviz
|
||||||
|
- name: vscode - Basics - Create settings directory
|
||||||
|
file:
|
||||||
|
path: "{{ ansible_user_dir }}/.config/Code/User"
|
||||||
|
state: directory
|
||||||
- name: vscode - Basics - Copy global settings
|
- name: vscode - Basics - Copy global settings
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/vscode-settings.json"
|
src: "{{ role_path }}/files/vscode-settings.json"
|
||||||
dest: ~/.config/Code/User/settings.json
|
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# Dev Env - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
- name: vscode - Golang - Configure VS Code
|
- name: vscode - Golang - Configure VS Code
|
||||||
shell: |
|
shell: |
|
||||||
PATH=/usr/local/bin:$PATH
|
PATH=/usr/local/bin:$PATH
|
||||||
code --install-extension ms-vscode.go
|
code --install-extension golang.go
|
||||||
when: user_vscode == true and user_lang_golang == true
|
when: user_vscode == true and user_lang_golang == true
|
||||||
|
|
||||||
# VS Code - LaTeX Distribution
|
# VS Code - LaTeX Distribution
|
||||||
|
|
Loading…
Reference in a new issue