2019-10-14 07:18:29 +00:00
|
|
|
|
---
|
2020-01-16 12:40:01 +00:00
|
|
|
|
# Common/Devel: Install and Configure Dev Env - Debian Version
|
2019-10-14 07:18:29 +00:00
|
|
|
|
|
2020-06-25 11:50:07 +00:00
|
|
|
|
- name: devel - Fonts
|
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.apt:
|
2020-06-25 11:50:07 +00:00
|
|
|
|
name: fonts-hack-ttf
|
|
|
|
|
state: present
|
|
|
|
|
|
2019-10-14 07:18:29 +00:00
|
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
|
|
|
|
- name: vscode - Basics
|
|
|
|
|
block:
|
2020-06-25 10:02:33 +00:00
|
|
|
|
- name: vscode - Basics - Add Repo Key
|
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.apt_key:
|
2020-06-25 10:02:33 +00:00
|
|
|
|
url: "https://packages.microsoft.com/keys/microsoft.asc"
|
|
|
|
|
state: present
|
|
|
|
|
- name: vscode - Basics - Add Repo
|
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.apt_repository:
|
2020-06-25 10:02:33 +00:00
|
|
|
|
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
|
|
|
|
filename: vscode
|
|
|
|
|
state: present
|
2019-10-14 07:18:29 +00:00
|
|
|
|
- name: vscode - Basics - Install
|
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.package:
|
2019-10-14 07:18:29 +00:00
|
|
|
|
name: "{{ packages }}"
|
|
|
|
|
state: present
|
|
|
|
|
vars:
|
|
|
|
|
packages:
|
2020-06-25 10:02:33 +00:00
|
|
|
|
- code
|
2020-02-28 08:39:56 +00:00
|
|
|
|
- name: vscode - Basics - Additional dependencies
|
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.package:
|
2020-02-28 08:39:56 +00:00
|
|
|
|
name: "{{ packages }}"
|
|
|
|
|
state: present
|
|
|
|
|
vars:
|
|
|
|
|
packages:
|
|
|
|
|
- plantuml
|
|
|
|
|
- graphviz
|
2020-06-25 10:02:33 +00:00
|
|
|
|
- name: vscode - Basics - Create settings directory
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.file:
|
2020-06-25 10:02:33 +00:00
|
|
|
|
path: "{{ ansible_user_dir }}/.config/Code/User"
|
|
|
|
|
state: directory
|
2019-10-14 07:18:29 +00:00
|
|
|
|
- name: vscode - Basics - Copy global settings
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.copy:
|
2019-10-14 07:18:29 +00:00
|
|
|
|
src: "{{ role_path }}/files/vscode-settings.json"
|
2020-06-25 10:02:33 +00:00
|
|
|
|
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
2019-10-14 07:18:29 +00:00
|
|
|
|
when: user_vscode == true
|
|
|
|
|
|
2020-01-16 12:40:01 +00:00
|
|
|
|
# Dev Env - C/C++ Development Tools
|
|
|
|
|
- name: devel - C/C++
|
2019-10-14 07:18:29 +00:00
|
|
|
|
block:
|
2020-01-16 12:40:01 +00:00
|
|
|
|
- name: devel - C/C++ - Install developer tools
|
2019-10-14 07:18:29 +00:00
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.package:
|
2019-10-14 07:18:29 +00:00
|
|
|
|
name: "{{ packages }}"
|
2019-10-17 08:25:49 +00:00
|
|
|
|
state: present
|
2019-10-14 07:18:29 +00:00
|
|
|
|
vars:
|
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
|
- clang-format
|
2019-10-17 07:44:52 +00:00
|
|
|
|
when: user_lang_cpp == true
|
2019-10-14 07:18:29 +00:00
|
|
|
|
|
2020-01-16 12:40:01 +00:00
|
|
|
|
# Dev Env - Python Development Tools
|
2019-10-14 07:18:29 +00:00
|
|
|
|
# all done in vscode.yml
|
2019-10-17 08:25:49 +00:00
|
|
|
|
|
2020-01-16 12:40:01 +00:00
|
|
|
|
# Dev Env - Golang Development Tools
|
|
|
|
|
- name: devel - Golang
|
2019-10-17 08:25:49 +00:00
|
|
|
|
block:
|
2020-01-16 12:40:01 +00:00
|
|
|
|
- name: devel - Golang - Install developer tools
|
2019-10-17 08:25:49 +00:00
|
|
|
|
become: yes
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.apt:
|
2019-10-17 08:25:49 +00:00
|
|
|
|
name: "{{ packages }}"
|
|
|
|
|
state: present
|
|
|
|
|
vars:
|
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
|
- golang
|
2019-10-17 08:25:49 +00:00
|
|
|
|
when: user_lang_golang == true
|
2020-05-23 20:30:37 +00:00
|
|
|
|
|
|
|
|
|
# Dev Env - LaTeX Distribution
|
|
|
|
|
- name: devel - LaTeX
|
|
|
|
|
block:
|
|
|
|
|
- name: devel - LaTeX - Install basic TeX distribution
|
2021-08-28 14:58:03 +00:00
|
|
|
|
ansible.builtin.package:
|
2020-05-23 20:30:37 +00:00
|
|
|
|
name: "{{ packages }}"
|
|
|
|
|
state: present
|
|
|
|
|
vars:
|
|
|
|
|
packages:
|
|
|
|
|
- texlive-base
|
|
|
|
|
# - texlive-bibtex-extra
|
|
|
|
|
# - texlive-science
|
|
|
|
|
# - texlive-fonts-extra
|
|
|
|
|
- biber
|
|
|
|
|
when: user_lang_latex == true
|