After factory resetting the maching you will need to do the following things to bootstrap it with Ansible.
- Set default shell to bash
chsh -s /bin/bash
(optional) - Open the App Store and sign in (but do not install anything)
- Install command line tools
xcode-select --install
- Add Python 3.8 to the $PATH
export PATH="$HOME/Library/Python/3.8/bin:$PATH"