diff --git a/Vagrantfile b/Vagrantfile
index ad5550ede64d9d9e3d3d48a6397a6c7f49d40288..3afc6d0c49e0257dd268fe59f1f35ea0aa05a00d 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -177,8 +177,9 @@ Vagrant.configure("2") do |config|
       if i == $num_instances
         node.vm.provision "ansible" do |ansible|
           ansible.playbook = $playbook
-          if File.exist?(File.join( $inventory, "hosts.ini"))
-            ansible.inventory_path = $inventory
+          $ansible_inventory_path = File.join( $inventory, "hosts.ini")
+          if File.exist?($ansible_inventory_path)
+            ansible.inventory_path = $ansible_inventory_path
           end
           ansible.become = true
           ansible.limit = "all"