Ansible files for OS X Provisioning.
# install command line tools
sudo xcodebuild -license
xcode-select --install
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# install ansible
brew install ansible
git clone git@github.com:bc-drop/dotfiles.git ~/.dotfiles/
cd .dotfiles
Edit line 6 of osx.yml to reflect your username
git submodule update # for ansible-modules-extra
HOMEBREW_CASK_OPTS="--appdir=/Applications" ansible-playbook osx.yml
You will have to enter your password a couple times when you get to TASK [osx : Install apps with Homebrew Cask]. There are a few options for storing this secrets that you are welcome to explore if you need this to run completely unattended.
If you want to explore secrets check out Ansible Vault or GitCrypt
Shotarok helped me work out some kinks - https://github.com/shotarok/osx-provisioning