Fix ansible docker support task

Removes become: and become_user: when including another role (that
already defines become: true and become_user: root)

Fixes an error occurring in the gates:
ERROR! 'become_user' is not a valid attribute for a IncludeRole

Change-Id: I362eefbe5b09ad64e97b3b541d07db2e6b990613
This commit is contained in:
Phil Sphicas 2020-01-03 08:34:52 -08:00
parent bcecbad652
commit 927c018d29

View File

@ -24,8 +24,6 @@
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
block: block:
- name: remove requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos - name: remove requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos
become: true
become_user: root
include_role: include_role:
name: deploy-package name: deploy-package
tasks_from: dist tasks_from: dist
@ -36,8 +34,6 @@
- python-urllib3 - python-urllib3
- python-requests - python-requests
- name: restore requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos - name: restore requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos
become: true
become_user: root
include_role: include_role:
name: deploy-package name: deploy-package
tasks_from: dist tasks_from: dist