From 4995ed78f3b77cfee702c73be6a3458ad9daeaae Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 19 Apr 2017 17:31:12 -0700 Subject: [PATCH] Fix role gate tests for Ansible 2.3 'ansible_become' defined as a host_var or in the inventory for a host has a higher precedence than 'become' defined within a playbook. In change Id5b76a87809f03951c954fc3d752419a673403f7, 'become' was defined explicitly for each play running against localhost so 'ansible_become' should be removed from its host_vars. Change-Id: I0a3019ed7f4e151625682d009e5359378152592d --- tests/host_vars/localhost.yml | 1 - tests/test-ironic-cli.yml | 1 + tests/test-rest-api.yml | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/host_vars/localhost.yml b/tests/host_vars/localhost.yml index 5cdf3b2f..cbc442af 100644 --- a/tests/host_vars/localhost.yml +++ b/tests/host_vars/localhost.yml @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -ansible_become: True neutron_local_ip: 10.1.2.1 ansible_python_interpreter: "/usr/bin/python2" bridges: diff --git a/tests/test-ironic-cli.yml b/tests/test-ironic-cli.yml index 07910103..01509725 100644 --- a/tests/test-ironic-cli.yml +++ b/tests/test-ironic-cli.yml @@ -16,6 +16,7 @@ - name: Test the ironic CLI hosts: hosts user: root + become: true gather_facts: false tasks: - name: Run the ironic chassis-list command diff --git a/tests/test-rest-api.yml b/tests/test-rest-api.yml index 7949fc4a..9fdfdbb6 100644 --- a/tests/test-rest-api.yml +++ b/tests/test-rest-api.yml @@ -2,6 +2,7 @@ - name: Playbook for functional testing ironic via its REST API hosts: localhost user: root + become: true gather_facts: true roles: - role: "openstack_openrc"