Update Vagrantfile

This commit is contained in:
Antoine Legrand 2016-12-19 23:39:32 +01:00 committed by GitHub
parent c1e4cef75b
commit 5fd92d5deb

2
Vagrantfile vendored
View file

@ -102,9 +102,11 @@ Vagrant.configure("2") do |config|
if i == $num_instances if i == $num_instances
config.vm.provision "ansible" do |ansible| config.vm.provision "ansible" do |ansible|
ansible.playbook = "cluster.yml" ansible.playbook = "cluster.yml"
if File.exist?(File.join(File.dirname($inventory), "hosts")) if File.exist?(File.join(File.dirname($inventory), "hosts"))
ansible.inventory_path = $inventory ansible.inventory_path = $inventory
end end
ansible.sudo = true ansible.sudo = true
ansible.limit = "all" ansible.limit = "all"
ansible.host_key_checking = false ansible.host_key_checking = false