dotfiles/.ansible/roles/mac_desktop/tasks/homebrew.yaml

52 lines
993 B
YAML
Raw Normal View History

# Install Homebrew
- name: Check for Homebrew
2017-11-24 18:42:08 +00:00
tags:
- install
stat:
path: /usr/local/bin/brew
register: st
- name: Install Homebrew
2017-11-24 18:42:08 +00:00
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
2017-11-24 18:42:08 +00:00
tags:
- install
homebrew_tap:
name: "{{ item }}"
state: present
with_items: "{{ homebrew_tap_items }}"
# Update and upgrades
- name: Homebrew update and upgrades
2017-11-24 18:42:08 +00:00
tags:
- install
homebrew:
update_homebrew: True
upgrade_all: True
# Brews
- name: Install Homebrew Brews
2017-11-24 18:42:08 +00:00
tags:
- install
homebrew:
name: "{{ item }}"
state: present
with_items: "{{ homebrew_brew_items }}"
# Casks
- name: Install Homebrew Casks
2017-11-24 18:42:08 +00:00
tags:
- install
homebrew_cask:
name: "{{ item }}"
state: present
with_items: "{{ homebrew_cask_items }}"