Manages macOS app installation with homebrew
- maxOS >= 10.10
- Ansible 2.3
hash_behaviour = merge
Just add the role to your requirements.yml
file:
- src: https://github.com/feffi/ansible-macos-homebrew.git
name: feffi.macos-homebrew
Available variables are listed below, along with default values:
macos_homebrew:
install:
# Path to install homebrew
prefix: "/usr/local"
path: "Homebrew"
# Path to link homebrew's brew command
bin: /usr/local/bin
# Path to install homebrew casks
cask: /Applications
# Homebrew taps to attach to
taps:
- { name: "homebrew/dupes" }
- { name: "caskroom/cask" }
- { name: "caskroom/versions" }
# Packages to install or uninstall.
packages: []
# Casks to install or uninstall.
casks: []
# Brewfile paths to process
brews: []
None.
---
- hosts: all
vars:
macos_homebrew:
packages:
- node
casks:
- "google-chrome"
brews:
- "/Users/feffi/dotfiles/Brewfile-core"
- "/Users/feffi/dotfiles/Brewfile-other"
roles:
- { role: feffi.macos-homebrew }