Before we can install Ansible, make sure the XCode command line tools are installed:
xcode-select --install
And we'll need to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
The preferred way to install Ansible on OSX is with PIP. However, since OSX does not come with Python 3 natively, we would need to install Python 3 before we could use PIP. We could use Homebrew to upgrade to Python 3, but at this point we might as well install Ansible directly.
brew install ansible
Now that Ansible is installed, we need to include the community.general "galaxy" in order to setup the Homebrew plugin
ansible-galaxy collection install community.general
- Setup Dotfiles
ansible-playbook --ask-vault-pass --tags dotfiles local.yml
- Run the remaining initial install scripts
ansible-playbook --tags <tag> local.yml