# Ansible provisioner fails to apply template to second VM in Vagrant

**URL:** <https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 17, 2016, 4:15pm UTC](https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459 "2016-05-17T16:15:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Willmer](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Alex\_Willmer](https://forum.ansible.com/u/Alex_Willmer)\
**Post date:** [May 17, 2016, 4:15pm UTC](https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459/1 "2016-05-17T16:15:23Z")

</div>

I’m trying to start-up multiple VMs in Vagrant, using Ansible as the provisioner. However when I run vagrant up only the first VM (foo) gets the template applied. The second (bar) misreports that the destination file is already OK.

Am I missing something?

Below are what I think is a minimal, but complete test case/example. I’m using Ansible 2.0.2.0, Vagrant 1.8.1, & Virtualbox 5.0.18\_Ubuntur106667 - all on Ubuntu 16.04.

With thanks, Alex

---

<div class="post-metadata">

**Author:** ![Alex\_Willmer](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Alex\_Willmer](https://forum.ansible.com/u/Alex_Willmer)\
**Post date:** [May 18, 2016, 10:32am UTC](https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459/2 "2016-05-18T10:32:23Z")

</div>

The cause of this was config lines I’d previously added to ansible.cfg.

[ssh\_connection]  
ssh\_args = -o ControlMaster=no  
control\_path = %(directory)s/ansible-ssh-%%p-%%r

Now I’ve removed them vagrant up is working as expected.

Sorry for the noise, Alex
