An Ansible playbook for provisioning a local OS X system. Heavily based on ansible-osx-env by github.com/richardrowe modified for my own use.
- Install Xcode
$ xcode-select --install
(select the Get Xcode option and install the full suite)
- Agree to the xcode license
$ sudo xcrun cc
- Install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
- Install Python / Pipenv
$ brew install python
$ pip install pipenv
- Clone this repository and install Ansible
$ git clone https://github.com/stoggi/ansible-osx-env.git
$ cd ansible-osx-env
$ pipenv install
- Run ansible
$ pipenv run ansible-playbook --ask-sudo-pass -i ./inventory local.yml --connection=local