Remove docker_container task from tripleo-container-rm.
The docker_container Ansible module requires to have installed python2-docker in the system, which isn't the case in our current CI environments. Therefore, when we try to remove some docker container with this role we end up getting an error. Turning the docker_container task into two command taks ensures that no new problems will occurr due to missing dependencies. Change-Id: I8801875ca21b16de9b92d7091b6923447370a36c Related-Bug: #1836531
This commit is contained in:
parent
a94f91f4aa
commit
f56915eae7
|
@ -20,8 +20,6 @@
|
|||
failed_when: false
|
||||
|
||||
- name: remove "{{ container }}" container
|
||||
docker_container:
|
||||
name: "{{ container }}"
|
||||
state: absent
|
||||
command: "docker rm --force {{ container }}"
|
||||
when:
|
||||
- stat_docker_container.rc == 0
|
||||
|
|
Loading…
Reference in New Issue