- Add vagrant instance ssh-config
$ vagrant ssh-config >> ~/.ssh/config
- Install ansible, testinfra into venv
$ pipenv install -d
$ pipenv shell
- Set invetory file then execute tests
(.venv)$ export MOLECULE_INVENTORY_FILE=.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
(.venv)$ pytest --hosts='ssh://default'