This repository hosts the vagrantfile and relevant resoures to bootstrap a sandbox virtual machine
- vagrant
- ansible
- virtualbox
- virtualbox-guest-additions-iso for guest OS installation. On linux it should be under
/usr/share/virtualbox/VBoxGuestAdditions.iso
- (optional) virtualbox extension pack. Menu available under File > Preferences > Extensions.
Deploy vagrant sandbox
vagrant up
To login: vagrant / vagrant
Depending on the ansible provider, you can run playbooks manually for troubleshooting them
Connect to your instance with vagrant ssh
and execute the following
ansible -i localhost -m ping
ansible-playbook -i localhost, -c local /path/to/share/res/ansible/main.yml --tags some_tags
# if use `vagrant ssh` and you get an error related to encoding issues, use:
# export LC_ALL=C.UTF-8
You need ansible to be installed on the host to do that.
python3 -m pip install --break-system-packages ansible
You can run the playbook with
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory res/ansible/pb-dummy.yml