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: I3b56a8c2df670423a2cb4e473379028e23bb01bd
This commit is contained in:
Jimmy McCrory 2017-04-19 17:28:00 -07:00
parent e54538cd17
commit 9e1824d3be
2 changed files with 1 additions and 1 deletions

View File

@ -14,4 +14,3 @@
# limitations under the License.
ansible_python_interpreter: "/usr/bin/python2"
ansible_become: True

View File

@ -16,6 +16,7 @@
- name: Playbook for deploying swift
hosts: "{{ swift_groups | default('swift_all:swift_remote_all') }}"
user: root
become: true
gather_facts: true
roles:
- role: "os_previous_swift"