diff --git a/Vagrantfile b/Vagrantfile index 73f812bdf..58c4954d8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -102,9 +102,11 @@ Vagrant.configure("2") do |config| if i == $num_instances config.vm.provision "ansible" do |ansible| ansible.playbook = "cluster.yml" + if File.exist?(File.join(File.dirname($inventory), "hosts")) ansible.inventory_path = $inventory end + ansible.sudo = true ansible.limit = "all" ansible.host_key_checking = false