Add become to plays that delegate to localhost

'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. It will also
need to be defined in plays that delegate to localhost.

Change-Id: Ifb5e907594ca5fba459ee5a90b202e17db081f9a
This commit is contained in:
Jimmy McCrory 2017-04-19 12:01:01 -07:00
parent b0be2e9327
commit 18309b13da
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -16,6 +16,7 @@
- name: Swift setup
hosts: swift_hosts
user: root
become: true
gather_facts: true
pre_tasks:
- name: Ensure xfsprogs is installed on localhost (Ubuntu)