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

87 lines
2.4 KiB
YAML
Raw Normal View History

---
# Common/Devel: Install and Configure Dev Env - macOS Version
- name: Devel - Fonts
community.general.homebrew_cask:
name: homebrew/cask-fonts/font-hack
state: present
# Install Visual Studio Code and Set Basic Configuration
- name: VSCode - Basics
2024-12-03 08:48:05 +00:00
when: user_vscode
block:
- name: VSCode - Basics - Install
community.general.homebrew_cask:
name: "{{ packages }}"
state: present
vars:
packages:
2019-11-12 20:42:58 +00:00
- visual-studio-code
# - name: VSCode - Basics - Additional dependencies (1)
# community.general.homebrew_cask:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - java # TODO: needs user password!
# - name: VSCode - Basics - Additional dependencies (2)
# community.general.homebrew:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - graphviz
- name: VSCode - Basics - Create settings directory
ansible.builtin.file:
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
state: directory
2024-12-03 08:48:05 +00:00
mode: "0755"
- name: VSCode - Basics - Copy global settings
ansible.builtin.copy:
src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
2024-12-03 08:48:05 +00:00
mode: "0644"
# Dev Env - C/C++ Development Tools
- name: Devel - C/C++
2024-12-03 08:48:05 +00:00
when: user_lang_cpp
block:
- name: Devel - C/C++ - Install developer tools
community.general.homebrew:
name: "{{ packages }}"
2019-10-17 08:25:49 +00:00
state: present
vars:
packages:
2019-11-12 20:42:58 +00:00
- clang-format
diff: false
# 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
2024-12-03 08:48:05 +00:00
when: user_lang_golang
2019-10-17 08:25:49 +00:00
block:
- 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
diff: false
2020-05-23 20:30:37 +00:00
# Dev Env - LaTeX Distribution
- name: Devel - LaTeX
2024-12-03 08:48:05 +00:00
when: user_vscode and user_lang_latex
2020-05-23 20:30:37 +00:00
block:
- 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
diff: false