A lot of the stuff here is taken from the great "Red Shirt Jeff"s Repository: https://github.com/geerlingguy/mac-dev-playbook
-
Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). -
Install Ansible: TODO /opt/homebrew/bin not needed in path? a) Run the following command to add Python 3 to your $PATH:
export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"
b) Upgrade Pip and install Ansible: sudo
pip3 install --upgrade pip && pip3 install ansible
-
Clone this repository to your home folder:
cd ~ && git clone https://github.com/jckleiner/config.git
-
TODO add your password to the playbook for casks.
nano ~/config/setup/macos-ansible/roles/homebrew/defaults/main.yml
and add your password toansible_become_password
-
Run:
cd ~/config/setup/macos-ansible && ansible-playbook -v --ask-become-pass setup.yml
-v
to get more information from the commands--ask-become-pass
asks your password once