A ansible playbook to setup your shiny new (mac) laptop.
- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"-
brew install ansible -
Setup ssh keys https://github.com/settings/keys
-
Run playbook
ansible-playbook ansible-macos-setup.yml
Early in the run the playbook prompts once for your macOS password so Docker Desktop (installed via Homebrew Cask) can run its privileged post-install steps. If you do not want an interactive prompt, export HOMEBREW_CASK_PASSWORD with the same password before running Ansible.