Role Detail

geerlingguy.homebrew

Homebrew for Mac OS X
Downloads
3776
Type Ansible
Minimum Ansible Version 1.9
Installation $ ansible-galaxy install geerlingguy.homebrew
Tags
development
packaging
system
Last Commit 2017-11-01 01:37:01 AM UTC
Last Imported 2017-11-01 02:03:02 AM UTC
Version History
Version Release Date
2.3.2 2017-11-01 01:37:01 AM
2.3.1 2017-08-03 13:38:01 PM
2.3.0 2017-08-01 03:46:03 AM
2.2.4 2017-05-10 02:12:02 AM
2.2.3 2017-03-21 14:17:02 PM
2.2.2 2017-03-14 20:16:08 PM
2.2.1 2017-01-22 02:01:02 AM
2.2.0 2016-12-29 22:25:10 PM
2.1.1 2016-12-29 19:08:07 PM
2.1.0 2016-09-23 21:33:09 PM
2.0.0 2016-09-23 00:22:12 AM
1.4.1 2016-03-04 03:47:03 AM
1.4.0 2016-02-29 03:29:03 AM
1.3.0 2016-02-16 03:20:03 AM
1.2.8 2015-10-30 01:23:01 AM
1.2.7 2015-09-03 15:09:03 PM
1.2.6 2015-08-31 15:01:03 PM
1.2.5 2015-07-09 16:00:04 PM
1.2.4 2015-07-09 15:55:03 PM
1.2.3 2015-06-09 16:24:04 PM
1.2.2 2015-02-12 19:22:07 PM
1.2.1 2015-01-04 21:36:09 PM
1.2.0 2015-01-04 21:25:09 PM
1.1.6 2014-12-31 21:28:09 PM
1.1.5 2014-12-31 18:45:06 PM
1.1.4 2014-12-31 16:39:04 PM
1.1.3 2014-12-31 16:09:04 PM
1.1.2 2014-12-31 16:04:04 PM
1.1.1 2014-12-31 05:22:05 AM
1.1.0 2014-12-30 22:13:10 PM
1.0.2 2014-12-30 21:37:09 PM
1.0.1 2014-10-03 03:40:03 AM
1.0.0 2014-10-03 03:36:03 AM
Supported Platforms
Platform Version
MacOSX 10.10
MacOSX 10.11
MacOSX 10.12
MacOSX 10.7
MacOSX 10.8
MacOSX 10.9
Last 10 Imports
Completed Status
2017-11-01 02:03:02 AM UTC SUCCESS
2017-11-01 01:53:01 AM UTC SUCCESS
2017-10-31 01:23:01 AM UTC SUCCESS
2017-09-21 11:35:11 AM UTC SUCCESS
2017-08-03 13:49:01 PM UTC SUCCESS
2017-08-03 13:49:01 PM UTC SUCCESS
2017-08-02 11:03:11 AM UTC SUCCESS
2017-08-01 04:13:04 AM UTC SUCCESS
2017-08-01 04:12:04 AM UTC SUCCESS
2017-07-26 19:40:07 PM UTC SUCCESS

Ansible Role: Homebrew

Build Status MIT licensed Galaxy Role

Installs Homebrew on MacOS, and configures packages, taps, and cask apps according to supplied variables.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

homebrew_repo: https://github.com/Homebrew/brew

The GitHub repository for Homebrew core.

homebrew_prefix: /usr/local
homebrew_install_path: "{{ homebrew_prefix }}/Homebrew"

The path where Homebrew will be installed (homebrew_prefix is the parent directory). It is recommended you stick to the default, otherwise Homebrew might have some weird issues. If you change this variable, you should also manually create a symlink back to /usr/local so things work as Homebrew expects.

homebrew_brew_bin_path: /usr/local/bin

The path where brew will be installed.

homebrew_installed_packages:
  - ssh-copy-id
  - pv
  - { name: vim, install_options: "with-luajit,override-system-vi" }

Packages you would like to make sure are installed via brew install. You can optionally add flags to the install by setting an install_options property, and if used, you need to explicitly set the name for the package as well.

homebrew_uninstalled_packages: []

Packages you would like to make sure are uninstalled.

homebrew_upgrade_all_packages: no

Whether to upgrade homebrew and all packages installed by homebrew. If you prefer to manually update packages via brew commands, leave this set to no.

homebrew_taps:
  - caskroom/cask

Taps you would like to make sure Homebrew has tapped.

homebrew_cask_apps:
  - firefox

Apps you would like to have installed via cask. Search for popular apps to see if they're available for install via Cask. Cask will not be used if it is not included in the list of taps in the homebrew_taps variable.

homebrew_cask_appdir: /Applications

Directory where applications installed via cask should be installed.

homebrew_use_brewfile: true

Whether to install via a Brewfile. If so, you will need to install the homebrew/bundle tap, which could be done within homebrew_taps.

homebrew_brewfile_dir: '~'

The directory where your Brewfile is located.

Dependencies

Example Playbook

- hosts: localhost
  vars:
    homebrew_installed_packages:
      - mysql
  roles:
    - geerlingguy.homebrew

See the tests/local-testing directory for an example of running this role over Ansible's local connection. See also: Mac Development Ansible Playbook.

License

MIT

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Maintainer(s)

None