I have a Virtualbox VM (CentOS) I need to deploy packages to.
What are the settings to use the Vagrant SSH tunnel, so that Ansible can deploy to the VM just like to a remote physical machine?
The user would be ‘vagrant’, but then there are the keys for logging in without a password, sudo, and the VM IP and port, perhaps?
Also, can all that be specified inside the .yml file rather than as ansible-playbook command arguments?
Many thanks