# Vagrant Ansible Provisioner failing to ssh to guest machine

**URL:** <https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007>\
**Category:** Ansible Project\
**Created:** [December 10, 2014, 9:38am UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007 "2014-12-10T09:38:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehul\_Ved](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Post date:** [December 10, 2014, 9:38am UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007/1 "2014-12-10T09:38:14Z")

</div>

I am working on setting up Ansible provisioning with Vagrant.  
Here’s what the relevant configuration looks like [http://pastebin.com/Tr6DPsY2](http://pastebin.com/Tr6DPsY2)  
And here’s the output [http://pastebin.com/bDgWPHmY](http://pastebin.com/bDgWPHmY)  
I am not sure why is it failing when private key file is given in the command line, if I give ansible\_ssh\_private\_key\_file=/home/mehul/.vagrant.d/insecure\_private\_key it works fine.

---

<div class="post-metadata">

**Author:** ![Mehul\_Ved](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Post date:** [December 11, 2014, 6:50pm UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007/2 "2014-12-11T18:50:57Z")

</div>

I was looking through the docs again and saw [http://docs.ansible.com/intro\_configuration.html#private-key-file](http://docs.ansible.com/intro_configuration.html#private-key-file) so vagrant is supplying the wrong CLI parameters? Has the parameter changed at any point?

---

<div class="post-metadata">

**Author:** ![Mehul\_Ved](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Post date:** [December 15, 2014, 8:06am UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007/3 "2014-12-15T08:06:23Z")

</div>

Just to close the thread and incase somebody else runs into it again. I did  
more testing, it was some regression in ansible 1.8.1 and symlinks  
[http://pastebin.com/X9Z3wwB1](http://pastebin.com/X9Z3wwB1)  
Upgrading to 1.8.2 has resolved the issue.
