Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Homebrew install no longer works due to deprecated repository #32

Closed
cthachuk opened this issue Jul 27, 2016 · 4 comments
Closed

Homebrew install no longer works due to deprecated repository #32

cthachuk opened this issue Jul 27, 2016 · 4 comments

Comments

@cthachuk
Copy link
Contributor

The repository git://github.com/Homebrew/homebrew.git is now deprecated, causing this role to fail when attempting to install homebrew. This can be verified by cloning the above repository and reading the README.md file.

Since the hombrew repositories have been split into two parts, I'm not certain what the quick fix is for this role.

@ksylvan
Copy link
Contributor

ksylvan commented Aug 11, 2016

My quick fix was to install brew using the curl method (/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)") before running the role.

So the playbook looks like this:

# Determine if homebrew is installed and install it if not.
#
- hosts: all
  gather_facts: false
  tasks:
    - name: Determine if brew binary exists
      stat: path=/usr/local/bin/brew
      register: brew_binary
      changed_when: false
    - name: install homebrew
      shell: >
        /usr/bin/ruby -e "$(curl -fsSL
        https://raw.githubusercontent.com/Homebrew/install/master/install)"
        < /dev/null
      when: brew_binary.stat.exists == false

# Install homebrew taps and apps, and any casks specified in variables
#
- hosts: all
  roles:
    - geerlingguy.homebrew

You can unpack what the install script is doing with the two github repositories and submit a PR to fix this role in the way that @geerlingguy intended instead of the quick and dirty fix.

@ksylvan
Copy link
Contributor

ksylvan commented Sep 19, 2016

The above workaround does not seem to be working any more on Sierra.

@geerlingguy
Copy link
Owner

@geerlingguy
Copy link
Owner

Closing in favor of #35.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants