diff --git a/infrastructure-playbooks/purge-container-cluster.yml b/infrastructure-playbooks/purge-container-cluster.yml index efdd22e806..e76eb43cf6 100644 --- a/infrastructure-playbooks/purge-container-cluster.yml +++ b/infrastructure-playbooks/purge-container-cluster.yml @@ -480,6 +480,12 @@ - import_role: name: ceph-facts + tasks_from: container_binary + + - name: remove stopped/exited containers + command: > + {{ container_binary }} container prune{% if container_binary == 'docker' %} -f{% endif %} + changed_when: false - name: show container list on all the nodes (should be empty) command: >