From 45f800fe18ca5fd66e86d13bd41e120be1a57ab0 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Mon, 27 Nov 2017 13:25:04 +0100 Subject: [PATCH] With Vagrant 2.* ansible.sudo -> ansible.become --- .travis.yml | 4 ++-- Vagrantfile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e848de..bf5f011 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,8 +32,8 @@ services: - docker before_install: - - wget https://releases.hashicorp.com/vagrant/1.9.5/vagrant_1.9.5_x86_64.deb - - sudo dpkg -i 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_2.0.1_x86_64.deb install: - pip install "$ANSIBLE_VERSION" diff --git a/Vagrantfile b/Vagrantfile index e4bfd94..d2673eb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -37,7 +37,7 @@ Vagrant.configure("2") do |config| m.vm.provision "ansible" do |ansible| ansible.playbook = "tests/test.yml" ansible.verbose = 'vv' - ansible.sudo = true + ansible.become = true ansible.extra_vars = opts[:vars] end end @@ -53,7 +53,7 @@ Vagrant.configure("2") do |config| m.vm.provision "ansible" do |ansible| ansible.playbook = "tests/test.yml" ansible.verbose = 'vv' - ansible.sudo = true + ansible.become = true ansible.extra_vars = opts[:vars] end end @@ -75,7 +75,7 @@ Vagrant.configure("2") do |config| # m.vm.provision "ansible" do |ansible| # ansible.playbook = "tests/test.yml" # ansible.verbose = 'vv' -# ansible.sudo = true +# ansible.become = true # ansible.extra_vars = { # ansible_python_interpreter: '/usr/local/bin/python' # }