With Vagrant 2.* ansible.sudo -> ansible.become
parent
9fc4838b1b
commit
45f800fe18
|
@ -32,8 +32,8 @@ services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://releases.hashicorp.com/vagrant/1.9.5/vagrant_1.9.5_x86_64.deb
|
- wget https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb
|
||||||
- sudo dpkg -i vagrant_1.9.5_x86_64.deb
|
- sudo dpkg -i vagrant_2.0.1_x86_64.deb
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install "$ANSIBLE_VERSION"
|
- pip install "$ANSIBLE_VERSION"
|
||||||
|
|
|
@ -37,7 +37,7 @@ Vagrant.configure("2") do |config|
|
||||||
m.vm.provision "ansible" do |ansible|
|
m.vm.provision "ansible" do |ansible|
|
||||||
ansible.playbook = "tests/test.yml"
|
ansible.playbook = "tests/test.yml"
|
||||||
ansible.verbose = 'vv'
|
ansible.verbose = 'vv'
|
||||||
ansible.sudo = true
|
ansible.become = true
|
||||||
ansible.extra_vars = opts[:vars]
|
ansible.extra_vars = opts[:vars]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -53,7 +53,7 @@ Vagrant.configure("2") do |config|
|
||||||
m.vm.provision "ansible" do |ansible|
|
m.vm.provision "ansible" do |ansible|
|
||||||
ansible.playbook = "tests/test.yml"
|
ansible.playbook = "tests/test.yml"
|
||||||
ansible.verbose = 'vv'
|
ansible.verbose = 'vv'
|
||||||
ansible.sudo = true
|
ansible.become = true
|
||||||
ansible.extra_vars = opts[:vars]
|
ansible.extra_vars = opts[:vars]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -75,7 +75,7 @@ Vagrant.configure("2") do |config|
|
||||||
# m.vm.provision "ansible" do |ansible|
|
# m.vm.provision "ansible" do |ansible|
|
||||||
# ansible.playbook = "tests/test.yml"
|
# ansible.playbook = "tests/test.yml"
|
||||||
# ansible.verbose = 'vv'
|
# ansible.verbose = 'vv'
|
||||||
# ansible.sudo = true
|
# ansible.become = true
|
||||||
# ansible.extra_vars = {
|
# ansible.extra_vars = {
|
||||||
# ansible_python_interpreter: '/usr/local/bin/python'
|
# ansible_python_interpreter: '/usr/local/bin/python'
|
||||||
# }
|
# }
|
||||||
|
|
Loading…
Reference in New Issue