diff --git a/Vagrantfile b/Vagrantfile index ad5550ede..3afc6d0c4 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"