Repeatable Ansible roles and playbook for provisioning my MacBook
- Xcode Command Line Tools:
xcode-select --install
- Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Git:
brew install git
- Ansible:
brew install ansible
mkdir ~/src
cd ~/src
git clone https://github.com/domaindrivendev/my-mac
cd my-mac
ansible-playbook local.yml
The playbook uses a number of defaulted variables that can be overriden at the command line. For example:
ansible-playbook local.yml --extra-vars "git_global_name=richie git_global_email=richie@myorg.com"
The following defaults can be overriden with this technique: