2019-10-14 07:18:29 +00:00
|
|
|
---
|
2020-01-16 12:40:01 +00:00
|
|
|
# Common/Devel: Install and Configure Dev Env - macOS Version
|
2019-10-14 07:18:29 +00:00
|
|
|
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - Fonts
|
|
|
|
community.general.homebrew_cask:
|
2020-07-18 00:15:04 +00:00
|
|
|
name: homebrew/cask-fonts/font-hack
|
2020-06-25 11:50:07 +00:00
|
|
|
state: present
|
|
|
|
|
2019-10-14 07:18:29 +00:00
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: VSCode - Basics
|
2022-02-13 19:52:22 +00:00
|
|
|
when: user_vscode == true
|
2019-10-14 07:18:29 +00:00
|
|
|
block:
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: VSCode - Basics - Install
|
|
|
|
community.general.homebrew_cask:
|
2019-10-14 07:18:29 +00:00
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
- visual-studio-code
|
2023-04-28 21:25:25 +00:00
|
|
|
# - name: VSCode - Basics - Additional dependencies (1)
|
|
|
|
# community.general.homebrew_cask:
|
2020-07-18 00:15:04 +00:00
|
|
|
# name: "{{ packages }}"
|
|
|
|
# state: present
|
|
|
|
# vars:
|
|
|
|
# packages:
|
|
|
|
# - java # TODO: needs user password!
|
2023-04-28 21:25:25 +00:00
|
|
|
# - name: VSCode - Basics - Additional dependencies (2)
|
|
|
|
# community.general.homebrew:
|
2020-07-18 00:15:04 +00:00
|
|
|
# name: "{{ packages }}"
|
|
|
|
# state: present
|
|
|
|
# vars:
|
|
|
|
# packages:
|
|
|
|
# - graphviz
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: VSCode - Basics - Create settings directory
|
2021-08-28 14:58:03 +00:00
|
|
|
ansible.builtin.file:
|
2022-02-13 19:52:22 +00:00
|
|
|
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
|
2020-06-25 10:02:33 +00:00
|
|
|
state: directory
|
2023-04-28 21:25:25 +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"
|
2022-02-13 19:52:22 +00:00
|
|
|
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
|
2019-10-14 07:18:29 +00:00
|
|
|
|
2020-01-16 12:40:01 +00:00
|
|
|
# Dev Env - C/C++ Development Tools
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - C/C++
|
2022-02-13 19:52:22 +00:00
|
|
|
when: user_lang_cpp == true
|
2019-10-14 07:18:29 +00:00
|
|
|
block:
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - C/C++ - Install developer tools
|
|
|
|
community.general.homebrew:
|
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
|
2023-04-28 21:25:25 +00:00
|
|
|
diff: false
|
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
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - Golang
|
2022-02-13 19:52:22 +00:00
|
|
|
when: user_lang_golang == true
|
2019-10-17 08:25:49 +00:00
|
|
|
block:
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - Golang - Install developer tools
|
|
|
|
community.general.homebrew:
|
2019-10-17 08:25:49 +00:00
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
2019-11-12 20:42:58 +00:00
|
|
|
- go
|
2023-04-28 21:25:25 +00:00
|
|
|
diff: false
|
2020-05-23 20:30:37 +00:00
|
|
|
|
|
|
|
# Dev Env - LaTeX Distribution
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - LaTeX
|
2022-02-13 19:52:22 +00:00
|
|
|
when: user_vscode == true and user_lang_latex == true
|
2020-05-23 20:30:37 +00:00
|
|
|
block:
|
2023-04-28 21:25:25 +00:00
|
|
|
- name: Devel - LaTeX - Install basic TeX distribution
|
|
|
|
community.general.homebrew_cask:
|
2020-05-23 20:30:37 +00:00
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- basictex
|
|
|
|
- tex-live-utility
|
2023-04-28 21:25:25 +00:00
|
|
|
diff: false
|