Merge "Force removal of stopped or running containers"

This commit is contained in:
Zuul 2019-07-13 13:46:55 +00:00 committed by Gerrit Code Review
commit 6f43506812
1 changed files with 2 additions and 6 deletions

View File

@ -73,11 +73,7 @@
register: stat_container
- name: Stop and remove container
command: "podman container rm --force {{ container }}"
changed_when: true
when:
- stat_container.rc == 0
block:
- name: Stop container
command: podman container kill "{{ container }}"
- name: "remove {{ container }} container"
command: "podman container rm {{ container }}"