---
- name: ensure that Xcode is installed
  command: command -v xcodebuild

- stat: path=/usr/local/bin/brew
  register: brew
  ignore_errors: True
- name: install homebrew
  shell: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  when: brew.stat.exists == False

---
- name: ensure that Xcode is installed
  command: command -v xcodebuild

- name: install homebrew
  shell: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  args:
    creates: /usr/local/bin/brew

Remove unnecessary registration in playbook
[meta] Remove unnecessary registration in playbook
