I want a fancy riced Linux desktop
brew cask install vagrant
Vagrant doesn't like Virtualbox 6.1, so install the last 6.0 version
brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask/7e703e0466a463fe26ab4e253e28baa9c20d5f36/Casks/virtualbox.rb
Don't install Ansible for the whole system. Instead use a virtual environment so different projects can use different version of Ansible
python3 -m venv env
source env/bin/activate
python -m pip install -r requirements.txt # ansible the is the only direct dep
All commands should be run from the repo root
- Activate virtualenv
source env/bin/activate
- Turn on VMs - see
vagrant --help
for other useful commands
vagrant up
- Create ssh config for Ansible to use
vagrant ssh-config > ssh_config
- Ping your new VMs with Ansible:
ansible all -m ping
- Run the test playbook:
ansible-playbook main.yml