- Run
./initialize.sh
script in the terminal./initialize.sh
-
Ensure Apple's Command Line Tools are installed
xcode-select --install
-
- Add Python 3 to PATH
export PATH="$HOME/Library/Python/3.9/bin:/opt/homebrew/bin:$PATH"
- Upgrade Pip
sudo pip3 install --upgrade pip
- Install Ansible
pip3 install ansible
-
Clone or download this repository to your local drive
git clone https://github.com/aszwajkowski/mac-setup-playbook.git
-
Install required Ansible roles
cd mac-setup-playbook ansible-galaxy install -r requirements.yml
-
Install all tasks from the playbook (add
--check --diff
at the end for dry-run). Enter your macOS account password when prompted for the 'BECOME' passwordansible-playbook main.yml --ask-become-pass
Note
If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Runbrew doctor
to see if this is the case.