101 lines
2.6 KiB
YAML
101 lines
2.6 KiB
YAML
---
|
|
# Common/Devel: Install and Configure Dev Env - Debian Version
|
|
|
|
- name: Devel - Fonts
|
|
become: true
|
|
ansible.builtin.apt:
|
|
name: fonts-hack-ttf
|
|
state: present
|
|
diff: false
|
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
|
- name: VSCode - Basics
|
|
when: user_vscode
|
|
block:
|
|
- name: VSCode - Basics - Add Repo Key
|
|
become: true
|
|
ansible.builtin.apt_key:
|
|
url: "https://packages.microsoft.com/keys/microsoft.asc"
|
|
state: present
|
|
- name: VSCode - Basics - Add Repo
|
|
become: true
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
|
filename: vscode
|
|
state: present
|
|
- name: VSCode - Basics - Install
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- code
|
|
diff: false
|
|
- name: VSCode - Basics - Additional dependencies
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- plantuml
|
|
- graphviz
|
|
diff: false
|
|
- name: VSCode - Basics - Create settings directory
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_user_dir }}/.config/Code/User"
|
|
state: directory
|
|
mode: "0755"
|
|
- name: VSCode - Basics - Copy global settings
|
|
ansible.builtin.copy:
|
|
src: "{{ role_path }}/files/vscode-settings.json"
|
|
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
|
mode: "0644"
|
|
|
|
# Dev Env - C/C++ Development Tools
|
|
- name: Devel - C/C++
|
|
when: user_lang_cpp
|
|
block:
|
|
- name: Devel - C/C++ - Install developer tools
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- clang-format
|
|
diff: false
|
|
|
|
# Dev Env - Python Development Tools
|
|
# all done in vscode.yml
|
|
|
|
# Dev Env - Golang Development Tools
|
|
- name: Devel - Golang
|
|
when: user_lang_golang
|
|
block:
|
|
- name: Devel - Golang - Install developer tools
|
|
become: true
|
|
ansible.builtin.apt:
|
|
name:
|
|
- golang
|
|
state: present
|
|
diff: false
|
|
|
|
# Dev Env - LaTeX Distribution
|
|
- name: Devel - LaTeX
|
|
when: user_lang_latex
|
|
block:
|
|
- name: Devel - LaTeX - Install basic TeX distribution
|
|
ansible.builtin.package:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- texlive-base
|
|
# - texlive-bibtex-extra
|
|
# - texlive-science
|
|
# - texlive-fonts-extra
|
|
- biber
|
|
diff: false
|