From 5fd92d5deb5a0b6ea376ea4d5bdca9753daa70af Mon Sep 17 00:00:00 2001 From: Antoine Legrand Date: Mon, 19 Dec 2016 23:39:32 +0100 Subject: [PATCH] Update Vagrantfile --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) 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