From 927c018d29f71c0241cbd208c91aa20ee1d41c21 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Fri, 3 Jan 2020 08:34:52 -0800 Subject: [PATCH] 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 --- roles/deploy-docker/tasks/deploy-ansible-docker-support.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/roles/deploy-docker/tasks/deploy-ansible-docker-support.yaml b/roles/deploy-docker/tasks/deploy-ansible-docker-support.yaml index 826b8d6fa..dfacf9228 100644 --- a/roles/deploy-docker/tasks/deploy-ansible-docker-support.yaml +++ b/roles/deploy-docker/tasks/deploy-ansible-docker-support.yaml @@ -24,8 +24,6 @@ when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' block: - 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: name: deploy-package tasks_from: dist @@ -36,8 +34,6 @@ - python-urllib3 - python-requests - 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: name: deploy-package tasks_from: dist