50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
---
|
|
# Common/VSCode: Install and Configure VS Code
|
|
|
|
- name: vscode - Install and configure VS Code
|
|
include_tasks: "{{ item }}"
|
|
with_first_found:
|
|
- "vscode-{{ ansible_distribution }}.yml"
|
|
- "vscode-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"
|
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
|
- name: vscode - Basics
|
|
block:
|
|
- name: vscode - Basics - Configure
|
|
shell: |
|
|
PATH=/usr/local/bin:$PATH
|
|
code --install-extension chiehyu.vscode-astyle
|
|
code --install-extension editorconfig
|
|
|
|
code --install-extension yzane.markdown-pdf
|
|
|
|
# code --install-extension james-yu.latex-workshop
|
|
# code --install-extension ban.spellright
|
|
when: user_vscode == true
|
|
|
|
|
|
# VS Code - C/C++ Development Tools
|
|
- name: vscode - C/C++
|
|
block:
|
|
- name: vscode - C/C++ - Configure VS Code
|
|
shell: |
|
|
PATH=/usr/local/bin:$PATH
|
|
code --install-extension ms-vscode.cpptools
|
|
when: user_vscode == true and user_vscode_cpp == true
|
|
|
|
|
|
# VS Code - Python Development Tools
|
|
- name: vscode - Python
|
|
block:
|
|
- name: vscode - Python - Install python dev packages
|
|
pip:
|
|
name:
|
|
- autopep8
|
|
- pylint
|
|
executable: /usr/local/bin/pip3
|
|
- name: vscode - Python - Configure VS Code
|
|
shell: |
|
|
PATH=/usr/local/bin:$PATH
|
|
code --install-extension ms-python.python
|
|
when: user_vscode == true and user_vscode_python == true
|