Skip to content

Installs Homebrew and Homebrew cask. Installs and upgrades brew and cask packages

Notifications You must be signed in to change notification settings

OpenCorrelate/correlate.homebrew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

correlate.homebrew

Ansible Installs Homebrew on Mac OS X, and configures packages, taps, and cask apps according to supplied variables. Derived from Ansible Role: Homebrew by geerlingguy. Will probably go away if some issues with the original role are addressed. Licenses preserved.

Requirements

Currently, user must have installed Xcode on target machine by other means or mechanism. User must also accept any licenses required to run Xcode without interruption. License can usually be accepted via the command line.

    # Assuming Xcode is installed but has yet to run for the first time.

    $ ssh <user>@<target-machine>
    $ sudo xcodebuild

    # Space through the License and type 'agree' when prompted.  
    # Press enter and you're good to go.

Role Variables

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

homebrew_install_path: /usr/local

The path where Homebrew will be installed. 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

Variables to help prepare Homebrew Cask

    homebrew_opt_cask_path: /opt/homebrew-cask
    homebrew_opt_cask_caskroom_path: /opt/homebrew-cask/Caskroom

Packages you would like to make sure are installed via brew install.

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 on http://caskroom.io/ 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.

Dependencies

None.

Example Playbook

- hosts: localhost
  vars:
    homebrew_installed_packages:
      - mysql
  roles:
    - { role: correlate.homebrew }

License

MIT / BSD

Author Information

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

This role was adapted in 2015 by Prez Cannady

About

Installs Homebrew and Homebrew cask. Installs and upgrades brew and cask packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published