]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-container-cluster: always prune force
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 9 Dec 2020 15:38:42 +0000 (10:38 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 9 Dec 2020 21:45:30 +0000 (16:45 -0500)
Since podman 2.x, there's now a confirmation when running podman
container prune command.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0108c9f941c3b66faa3f2463cde4d4f0587ca9e4)

infrastructure-playbooks/purge-container-cluster.yml

index e3862c0121b22454e6c22f5dc7aae72c868c4c41..e7f7ce352a404ecb136214e0b9ea80ae5723ca7d 100644 (file)
 
   - name: remove stopped/exited containers
     command: >
-      {{ container_binary }} container prune{% if container_binary == 'docker' %} -f{% endif %}
+      {{ container_binary }} container prune -f
     changed_when: false
 
   - name: show container list on all the nodes (should be empty)