ansible-role-common/tasks/devel-Debian.yml

95 lines
2.5 KiB
YAML
Raw Normal View History

---
# Common/Devel: Install and Configure Dev Env - Debian Version
- name: devel - Fonts
become: yes
ansible.builtin.apt:
name: fonts-hack-ttf
state: present
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
when: user_vscode == true
block:
- name: vscode - Basics - Add Repo Key
become: yes
ansible.builtin.apt_key:
url: "https://packages.microsoft.com/keys/microsoft.asc"
state: present
- name: vscode - Basics - Add Repo
become: yes
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: yes
ansible.builtin.package:
name: "{{ packages }}"
state: present
vars:
packages:
- code
2020-02-28 08:39:56 +00:00
- name: vscode - Basics - Additional dependencies
become: yes
ansible.builtin.package:
2020-02-28 08:39:56 +00:00
name: "{{ packages }}"
state: present
vars:
packages:
- plantuml
- graphviz
- name: vscode - Basics - Create settings directory
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.config/Code/User"
state: directory
- 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"
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
when: user_lang_cpp == true
block:
- name: devel - C/C++ - Install developer tools
become: yes
ansible.builtin.package:
name: "{{ packages }}"
2019-10-17 08:25:49 +00:00
state: present
vars:
packages:
2019-11-12 20:42:58 +00:00
- clang-format
# Dev Env - Python Development Tools
# all done in vscode.yml
2019-10-17 08:25:49 +00:00
# Dev Env - Golang Development Tools
- name: devel - Golang
when: user_lang_golang == true
2019-10-17 08:25:49 +00:00
block:
- name: devel - Golang - Install developer tools
2019-10-17 08:25:49 +00:00
become: yes
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
2020-05-23 20:30:37 +00:00
# Dev Env - LaTeX Distribution
- name: devel - LaTeX
when: user_lang_latex == true
2020-05-23 20:30:37 +00:00
block:
- name: devel - LaTeX - Install basic TeX distribution
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