Skip to content
Snippets Groups Projects
Commit 97c68810 authored by guenhter's avatar guenhter
Browse files

Change deprecated vagrant ansible flag 'sudo' to 'become'

parent d738acf6
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ Vagrant.configure("2") do |config| ...@@ -122,7 +122,7 @@ Vagrant.configure("2") do |config|
} }
config.vm.network :private_network, ip: ip config.vm.network :private_network, ip: ip
# workaround for Vagrant 1.9.1 and centos vm # workaround for Vagrant 1.9.1 and centos vm
# https://github.com/hashicorp/vagrant/issues/8096 # https://github.com/hashicorp/vagrant/issues/8096
if Vagrant::VERSION == "1.9.1" && $os == "centos" if Vagrant::VERSION == "1.9.1" && $os == "centos"
...@@ -140,7 +140,7 @@ Vagrant.configure("2") do |config| ...@@ -140,7 +140,7 @@ Vagrant.configure("2") do |config|
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.become = true
ansible.limit = "all" ansible.limit = "all"
ansible.host_key_checking = false ansible.host_key_checking = false
ansible.raw_arguments = ["--forks=#{$num_instances}", "--flush-cache"] ansible.raw_arguments = ["--forks=#{$num_instances}", "--flush-cache"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment