2019-10-14 07:18:29 +00:00
|
|
|
---
|
|
|
|
# Common/VSCode: Install and Configure VS Code - Debian Version
|
|
|
|
|
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
|
|
|
- name: vscode - Basics
|
|
|
|
block:
|
|
|
|
- name: vscode - Basics - Install
|
|
|
|
become: yes
|
|
|
|
package:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
- visual-studio-code
|
2019-10-14 07:18:29 +00:00
|
|
|
- name: vscode - Basics - Copy global settings
|
|
|
|
copy:
|
|
|
|
src: "{{ role_path }}/files/vscode-settings.json"
|
|
|
|
dest: ~/.config/Code/User/settings.json
|
|
|
|
when: user_vscode == true
|
|
|
|
|
|
|
|
# VS Code - C/C++ Development Tools
|
|
|
|
- name: vscode - C/C++
|
|
|
|
block:
|
|
|
|
- name: vscode - C/C++ - Install developer tools
|
|
|
|
become: yes
|
|
|
|
package:
|
|
|
|
name: "{{ packages }}"
|
2019-10-17 08:25:49 +00:00
|
|
|
state: present
|
2019-10-14 07:18:29 +00:00
|
|
|
vars:
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
- clang-format
|
2019-10-17 07:44:52 +00:00
|
|
|
when: user_lang_cpp == true
|
2019-10-14 07:18:29 +00:00
|
|
|
|
|
|
|
# VS Code - Python Development Tools
|
|
|
|
# all done in vscode.yml
|
2019-10-17 08:25:49 +00:00
|
|
|
|
|
|
|
# VS Code - Golang Development Tools
|
|
|
|
- name: vscode - Golang
|
|
|
|
block:
|
|
|
|
- name: vscode - Golang - Install developer tools
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
- golang
|
2019-10-17 08:25:49 +00:00
|
|
|
when: user_lang_golang == true
|