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

82 lines
2.3 KiB
YAML
Raw Permalink Normal View History

---
# Common/Devel: Install and Configure Dev Env - macOS Version
- name: devel - Fonts
ansible.builtin.homebrew_cask:
name: homebrew/cask-fonts/font-hack
state: present
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
when: user_vscode == true
block:
- name: vscode - Basics - Install
ansible.builtin.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)
# ansible.builtin.homebrew_cask:
# name: "{{ packages }}"
# state: present
# vars:
# packages:
# - java # TODO: needs user password!
# - name: vscode - Basics - Additional dependencies (2)
# ansible.builtin.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
- 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"
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
when: user_lang_cpp == true
block:
- name: devel - C/C++ - Install developer tools
ansible.builtin.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
# 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
ansible.builtin.homebrew:
2019-10-17 08:25:49 +00:00
name: "{{ packages }}"
state: present
vars:
packages:
2019-11-12 20:42:58 +00:00
- go
2020-05-23 20:30:37 +00:00
# Dev Env - LaTeX Distribution
- name: devel - LaTeX
when: user_vscode == true and user_lang_latex == true
2020-05-23 20:30:37 +00:00
block:
- name: devel - LaTeX - Install basic TeX distribution
ansible.builtin.homebrew_cask:
2020-05-23 20:30:37 +00:00
name: "{{ packages }}"
state: present
vars:
packages:
- basictex
- tex-live-utility