Skip to content

df3l0p/vagrant_sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant sandbox

This repository hosts the vagrantfile and relevant resoures to bootstrap a sandbox virtual machine

Requirements

  • 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.

Getting started

Deploy vagrant sandbox

vagrant up

To login: vagrant / vagrant

Running ansible playbooks manually

Depending on the ansible provider, you can run playbooks manually for troubleshooting them

ansible_local

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

ansible

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published