Git Product home page Git Product logo

ansible-homebrew's Introduction

Homebrew

Build Status

An Ansible role to install and update Homebrew (or Linuxbrew).

Requirements

Only Ansible is required.

Role Variables

Several variables are available to configure the role.

To set where homebrew will be installed:

homebrew_root: /usr/local

To control which libraries will be installed by Homebrew:

homebrew_libraries: []

To control which cask libraries will be installed by Homebrew:

homebrew_casks: []
homebrew_casks_with_sudo: []

To keep Homebrew up-to-date:

homebrew_update: true

To keep all of the libraries installed by Homebrew up-to-date:

homebrew_upgrade_all: true

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - role: dirn.homebrew
      homebrew_root: /opt/homebrew
      homebrew_libraries:
        - git
        - vim
        - zsh
      homebrew_casks:
        - 1password
        - alfred
        - iterm2
      homebrew_casks_with_sudo:
        - seil
      homebrew_update: true
      homebrew_upgrade_all: false

License

MIT

Author Information

This role was created by Andy Dirnberger.

ansible-homebrew's People

Contributors

dirn avatar

Watchers

 avatar  avatar  avatar

ansible-homebrew's Issues

Do I need to install git on the host mac prior to applying this role?

I get this error, when I try to run the playbook including the role:

TASK: [dirn.homebrew | Update] ************************************************
failed: [testmac05] => {"failed": true}
msg: You must: brew install git
Error: Failure while executing: git init

FATAL: all hosts have already failed -- aborting

I tried to install git explicitly but that doesn't work either.

roles:
- role: dirn.homebrew
homebrew_libraries:
- git

I'm new to this and will be grateful for any help!

error with homebrew update

When I set homebrew_update to true, I get the following errors:

TASK: [ansible-homebrew-master | Update] **************************************
failed: [testmac02.campus.fu-berlin.de] => {"failed": true}
msg: You must: brew install git
Error: Failure while executing: git init

I tried installing git beforehand using homebrew as well, but that doesn't help either.

Error running this role on RHEL 7

Does this role assume that it's running on OSX and Ansible < 2.x?

Checking out files: 100% (1008/1008), done.
\n/home/brainstorm/.linuxbrew/Library/Homebrew/cmd/update.sh: line 6:
 /home/brainstorm/.linuxbrew/Library/ENV/scm/git: No such file or directory\n
/home/brainstorm/.linuxbrew/Library/Homebrew/cmd/update.sh: line 6: /home/brainstorm/.linuxbrew/Library/ENV/scm/git: No such file or directory\n/home/brainstorm/.linuxbrew/Library/Homebrew/cmd/update.sh: line 6: /home/brainstorm/.linuxbrew/Library/ENV/scm/git: No such file or directory\n/home/brainstorm/.linuxbrew/Library/Homebrew/cmd/update.sh: line 6: /home/brainstorm/.linuxbrew/Library/ENV/scm/git: No such file or directory\n/home/brainstorm/.linuxbrew/Library/Homebrew/cmd/update.sh: line 6: /home/brainstorm/.linuxbrew/Library/ENV/scm/git: No such file or directory
98% (3803/3880)   \rChecking out files:  98% (3837/3880)   \rChecking out files:  99% (3842/3880)   \rChecking out files: 100% (3880/3880)   \rChecking out files: 100% (3880/3880), done.\nError: update-report should not be called directly!"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.