Manage macOS installations with Homebrew.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
meta
tasks
tests
.gitignore
.travis.yml
LICENSE
README.md

README.md

ansible-macos-homebrew

Manages macOS app installation with homebrew

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • maxOS >= 10.10
  • Ansible 2.3

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-macos-homebrew.git
  name: feffi.macos-homebrew

Role Variables

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: []

Dependencies

None.

Example Playbook

---
- 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 }