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
This commit is contained in:
Jimmy McCrory 2017-04-19 15:24:54 -07:00
parent 0a0f082e2f
commit c8fa21215d
2 changed files with 1 additions and 1 deletions

View File

@ -18,4 +18,3 @@ bridges:
ip_addr: "10.1.0.1" ip_addr: "10.1.0.1"
ansible_python_interpreter: "/usr/bin/python2" ansible_python_interpreter: "/usr/bin/python2"
ansible_become: True

View File

@ -18,6 +18,7 @@
- name: Make /lib/modules accessible on neutron_agent containers - name: Make /lib/modules accessible on neutron_agent containers
hosts: neutron_agent hosts: neutron_agent
user: root user: root
become: true
gather_facts: true gather_facts: true
tasks: tasks:
- name: Use the unconfined aa profile - name: Use the unconfined aa profile