]> 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 19:46:45 +0000 (14:46 -0500)
Since podman 2.x, there's now a confirmation when running podman
container prune command.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/purge-container-cluster.yml

index 900c14ee2c375d1d71a717093f09d3cd34b6c199..67a3bdfd2c592d9b73cba8c94ecbf8b6b00b6533 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)