From c8fa21215da17d54a34228c92003c441f5c86867 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 19 Apr 2017 15:24:54 -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: Ic739c776dfb050e18828f2908f9fc1acc02bd90c --- tests/host_vars/localhost.yml | 1 - tests/test-install-previous-neutron.yml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/host_vars/localhost.yml b/tests/host_vars/localhost.yml index 4962215e..f7fc7d66 100644 --- a/tests/host_vars/localhost.yml +++ b/tests/host_vars/localhost.yml @@ -18,4 +18,3 @@ bridges: ip_addr: "10.1.0.1" ansible_python_interpreter: "/usr/bin/python2" -ansible_become: True diff --git a/tests/test-install-previous-neutron.yml b/tests/test-install-previous-neutron.yml index 88862464..be8e6768 100644 --- a/tests/test-install-previous-neutron.yml +++ b/tests/test-install-previous-neutron.yml @@ -18,6 +18,7 @@ - name: Make /lib/modules accessible on neutron_agent containers hosts: neutron_agent user: root + become: true gather_facts: true tasks: - name: Use the unconfined aa profile