95 lines
2.4 KiB
YAML
95 lines
2.4 KiB
YAML
---
|
||
# Common/Devel: Install and Configure Dev Env - Debian Version
|
||
|
||
- name: devel - Fonts
|
||
become: yes
|
||
apt:
|
||
name: fonts-hack-ttf
|
||
state: present
|
||
|
||
# Install Visual Studio Code and Set Basic Configuration
|
||
- name: vscode - Basics
|
||
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
|
||
become: yes
|
||
package:
|
||
name: "{{ packages }}"
|
||
state: present
|
||
vars:
|
||
packages:
|
||
- code
|
||
- name: vscode - Basics - Additional dependencies
|
||
become: yes
|
||
package:
|
||
name: "{{ packages }}"
|
||
state: present
|
||
vars:
|
||
packages:
|
||
- plantuml
|
||
- graphviz
|
||
- name: vscode - Basics - Create settings directory
|
||
file:
|
||
path: "{{ ansible_user_dir }}/.config/Code/User"
|
||
state: directory
|
||
- name: vscode - Basics - Copy global settings
|
||
copy:
|
||
src: "{{ role_path }}/files/vscode-settings.json"
|
||
dest: "{{ ansible_user_dir }}/.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
|
||
|
||
# Dev Env - LaTeX Distribution
|
||
- name: devel - LaTeX
|
||
block:
|
||
- name: devel - LaTeX - Install basic TeX distribution
|
||
package:
|
||
name: "{{ packages }}"
|
||
state: present
|
||
vars:
|
||
packages:
|
||
- texlive-base
|
||
# - texlive-bibtex-extra
|
||
# - texlive-science
|
||
# - texlive-fonts-extra
|
||
- biber
|
||
when: user_lang_latex == true
|