Skip to content

Instantly share code, notes, and snippets.

@eyasuyuki
Created July 10, 2015 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyasuyuki/96b5e9351b10facdbd7f to your computer and use it in GitHub Desktop.
Save eyasuyuki/96b5e9351b10facdbd7f to your computer and use it in GitHub Desktop.
Ansible homebrew setup script
# Brew Tap
- name: Brew Tap
shell: /usr/local/bin/brew tap {{ item }}
with_items: brew_tap
# Brew Update
- name: Brew Update
homebrew: update_homebrew=yes upgrade_all=yes
# Install Apps
- name: Install Apps
homebrew: name={{ item }}
with_items: brew_app
# Cask Update
- name: Cask Update
shell: /usr/local/bin/brew cask update
# Install Casks
- name: Install Casks
homebrew_cask: name={{ item }}
with_items: brew_cask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment