3
3
Is it possible to have Ansible display facts about a Vagrant box?
The Ansible documentation uses
ansible hostname -m setup
even if I connect with the Vagrant user I would still need the SSH key to connect to the Vagrant box.
3
3
Is it possible to have Ansible display facts about a Vagrant box?
The Ansible documentation uses
ansible hostname -m setup
even if I connect with the Vagrant user I would still need the SSH key to connect to the Vagrant box.
7
Solved, Using Vagrant and Ansible, Running Ansible Manually
ansible -i hosts default -m setup --user vagrant \
-i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \
--private-key=.vagrant/machines/default/virtualbox/private_key
0
I just ran it locally in vagrant instead.
ansible all -i localhost, -c local -m setup