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

82 lines
2.1 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Common/Devel: Install and Configure Dev Env - macOS Version
- name: devel - Fonts
homebrew_cask:
name: homebrew/cask-fonts/font-hack
state: present
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
block:
- name: vscode - Basics - Install
homebrew_cask:
name: "{{ packages }}"
state: present
vars:
packages:
- visual-studio-code
# - name: vscode - Basics - Additional dependencies (1)
# homebrew_cask:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - java # TODO: needs user password!
# - name: vscode - Basics - Additional dependencies (2)
# homebrew:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - graphviz
- name: vscode - Basics - Create settings directory
file:
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
state: directory
- name: vscode - Basics - Copy global settings
copy:
src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
when: user_vscode == true
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
block:
- name: devel - C/C++ - Install developer tools
homebrew:
name: "{{ packages }}"
state: present
vars:
packages:
- clang-format
when: user_lang_cpp == true
# Dev Env - Python Development Tools
# all done in vscode.yml
# Dev Env - Golang Development Tools
- name: devel - Golang
block:
- name: devel - Golang - Install developer tools
homebrew:
name: "{{ packages }}"
state: present
vars:
packages:
- go
when: user_lang_golang == true
# Dev Env - LaTeX Distribution
- name: devel - LaTeX
block:
- name: devel - LaTeX - Install basic TeX distribution
homebrew_cask:
name: "{{ packages }}"
state: present
vars:
packages:
- basictex
- tex-live-utility
when: user_vscode == true and user_lang_latex == true