Ansible role that installs Homebrew, an OS X package manager.
homebrew_user
(oruser
) - required - The user for which Homebrew will be installed, presumably an administrator of the machine (defaults to the value of theuser
variable).homebrew_dir
- The directory where Homebrew will be installed (defaults to/usr/local
).homebrew_repo
- The repository to clone Homebrew from (defaults tohttps://github.com/Homebrew/brew.git
).homebrew_taps
[array]
- Additional Homebrew formulae repositories to tap (defaults tohomebrew/dupes
andhomebrew/services
).
- hosts: servers
roles:
- role: AlphaHydrae.homebrew
homebrew_user: jdoe
With a default user defined (e.g. at the playbook level)
- hosts: servers
vars:
user: jdoe
roles:
- role: AlphaHydrae.homebrew