blimmer's Mac Development Ansible Playbook
This is a fork of geerlingguy/mac-dev-playbook, customized for my needs.
- Install Ansible.
- Ensure Apple's command line tools are installed (
xcode-select --installto launch the installer).
- Clone this repository to your local drive.
$ ansible-galaxy install -r requirements.ymlinside this directory to install required Ansible roles.
ansible-playbook main.yml -i inventory -Kinside this directory. Enter your account password when prompted.
Note: If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Run
brew doctorto see if this is the case.
Testing the Playbook
Many people have asked me if I often wipe my entire workstation and start from scratch just to test changes to the playbook. Nope! Instead, I posted instructions for how I build a Mac OS X VirtualBox VM, on which I can continually run and re-run this playbook to test changes and make sure things work correctly.
Additionally, this project is continuously tested on Travis CI's macOS infrastructure.
Ansible for DevOps
Check out Ansible for DevOps, which teaches you how to automate almost anything with Ansible.