Skip to content

Instantly share code, notes, and snippets.

@acsrujan
Created September 15, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acsrujan/35c24db8c3fb488bcaf8a335e536a320 to your computer and use it in GitHub Desktop.
Save acsrujan/35c24db8c3fb488bcaf8a335e536a320 to your computer and use it in GitHub Desktop.
Setting up new Mac with Ansible
---
- hosts: all
tasks:
- name: Installs homebrew if not already present
command: brew -v
register: brew_check
- name: install homebrew with curl
command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
when: brew_check.stdout.find('command not found') > -1
#!/bin/bash
sudo easy_install pip
sudo pip install ansible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment