ansible-role-common/tasks/devel-Archlinux.yml
2020-02-28 09:39:56 +01:00

53 lines
1.3 KiB
YAML

---
# Common/Devel: Install and Configure Dev Env - ArchLinux Version
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
block:
- name: vscode - Basics - Install
package:
name: "{{ packages }}"
state: present
vars:
packages:
- visual-studio-code
- name: vscode - Basics - Additional dependencies
package:
name: "{{ packages }}"
state: present
vars:
packages:
- plantuml
- 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
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
package:
name: "{{ packages }}"
state: present
vars:
packages:
- go
when: user_lang_golang == true