ansible-role-common/tasks/devel-Debian.yml
2020-01-16 13:40:01 +01:00

49 lines
1.2 KiB
YAML

---
# Common/Devel: Install and Configure Dev Env - 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:
- visual-studio-code
- name: vscode - Basics - Copy global settings
copy:
src: "{{ role_path }}/files/vscode-settings.json"
dest: ~/.config/Code/User/settings.json
when: user_vscode == true
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
block:
- name: devel - C/C++ - Install developer tools
become: yes
package:
name: "{{ packages }}"
state: present
vars:
packages:
- clang-format
when: user_lang_cpp == true
# Dev Env - Python Development Tools
# all done in vscode.yml
# Dev Env - Golang Development Tools
- name: devel - Golang
block:
- name: devel - Golang - Install developer tools
become: yes
apt:
name: "{{ packages }}"
state: present
vars:
packages:
- golang
when: user_lang_golang == true