This playbook should install and configures most of the software I use on my Mac for software development. It's currently a work in progress, extracting this functionality from install scripts in my dotfiles repo.
-
Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). -
- Install Ansible:
python3 -m pip install --user ansible
- Install Ansible:
-
Clone or download this repository to your local drive.
-
Run
~/Library/Python/3.9/bin/ansible-galaxy install -r requirements.yml
inside this directory to install required Ansible roles. -
Run
~/Library/Python/3.9/bin/ansible-playbook --ask-become-pass --ask-vault-pass local.yml
inside this directory. Enter macOS account password when prompted for the 'BECOME' password.
Note: If Homebrew commands fail, might need to agree to Xcode's license or fix some other Brew issue. Run
brew doctor
to see if this is the case.
Much of the Ansible work builds on top of the useful roles and collections shared by Jeff Geerling, namely https://github.com/geerlingguy/ansible-collection-mac
An incomplete, inexact and inaccurate list of other steps needed post-install that I haven't, can't or won't automate
Install youtube-music: https://github.com/th-ch/youtube-music