52 lines
993 B
YAML
52 lines
993 B
YAML
# Install Homebrew
|
|
- name: Check for Homebrew
|
|
tags:
|
|
- install
|
|
stat:
|
|
path: /usr/local/bin/brew
|
|
register: st
|
|
|
|
- name: Install Homebrew
|
|
tags:
|
|
- install
|
|
command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
when: st.stat.executable != True
|
|
|
|
- name: Disable Homebrew analytics
|
|
command: brew analytics off
|
|
|
|
# Taps
|
|
- name: Install Homebrew Taps
|
|
tags:
|
|
- install
|
|
homebrew_tap:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ homebrew_tap_items }}"
|
|
|
|
# Update and upgrades
|
|
- name: Homebrew update and upgrades
|
|
tags:
|
|
- install
|
|
homebrew:
|
|
update_homebrew: True
|
|
upgrade_all: True
|
|
|
|
# Brews
|
|
- name: Install Homebrew Brews
|
|
tags:
|
|
- install
|
|
homebrew:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ homebrew_brew_items }}"
|
|
|
|
# Casks
|
|
- name: Install Homebrew Casks
|
|
tags:
|
|
- install
|
|
homebrew_cask:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ homebrew_cask_items }}"
|