Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Force removal of stopped or running containers"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jul 13, 2019
2 parents c59f7a7 + 7895171 commit 6f43506
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 6f43506

Please sign in to comment.