This playbook is a very simplified version of mac-dev-playbook developed by @geerlingguy adapted to my personal needs. Special credits to the original author.
This playbook installs and configures most of the software I use on my Mac for web and software development. Some things in macOS are slightly difficult to automate, so I still have a few manual installation steps, but at least it's all documented here.
-
Install HomeBrew
-
Install Ansible:
Python Environment
To keep default python installation clean, its best to install pyenv and use it for ansible run:brew install xz zlib pyenv pyenv init > ~/.zshrc pyenv install 3 pyenv global 3 pip3 install ansible -
Clone or download this repository to your local drive.
-
Run
ansible-playbook main.yml --ask-become-passinside this directory. Enter your macOS account password when prompted for the 'BECOME' password.
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.
