Merge "Use 'become' for destroy container playbook."

This commit is contained in:
Zuul 2018-07-12 21:01:25 +00:00 committed by Gerrit Code Review
commit d28cc46e5f

View File

@ -16,6 +16,12 @@
- name: Playbook for destroying test containers
hosts: all_containers
remote_user: root
# Due to the use of delegation to localhost
# in this task, we also need to set 'become'
# otherwise the task does not have access to
# the socket because it's executed as the
# user running the playbook (zuul).
become: yes
gather_facts: false
tasks:
- name: Destroy a container