This role ensures that Homebrew and its configured packages are installed on OS X.
- Xcode Command Line Tools
Available variables are listed below, along with default values (see defaults/main.yml
):
brew_dir: /opt/homebrew
The path where Homebrew will be installed. By default, it will install Homebrew to /opt/homebrew
. Some things may not build when installed here, but to avoid security issues and /usr/local
being a mess with other stuff, it is recommend stick to this default.
brew_taps: []
Taps you would like to make sure Homebrew has added via brew tap
.
brew_upgrade_all: False
Whether to update Homebrew and upgrade all packages installed by it. If you prefer to manually update packages via brew
command, leave this set to False
.
brew_packages: []
Packages you would like to make sure are installed via brew install
.
app_dir: /Applications
The path where applications will be installed. By default, it will install applications to /Applications
.
cask_packages: []
Packages you would like to make sure are installed via brew cask install
.
None.
- hosts: localhost
connection: local
vars:
brew_taps:
- homebrew/completions
brew_upgrade_all: True
brew_packages:
- wget
cask_packages:
- google-chrome
roles:
- { role: jgkim.brew }
MIT
This role was written by James G. Kim, after being inspired by others.