Since Ansible 1.6, the homebrew
and homebrew_cask
modules have been added,
just ansible
all the things!
To run:
ansible-playbook playbook.yml
Optionally add --skip-tags brew
to skip the slow brew stuff.
- Install homebrew with the command from the site
brew install python
(It's better than system python, see guide)pip install ansible
(better than homebrew package as it's always latest)- Then
ansible-playbook playbook.yml
Thanks to adamchainz for original repo https://github.com/adamchainz/mac-ansible