From 4db2d0028c293eea44a410bce14590dec8358078 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 Aug 2023 20:02:59 +0200 Subject: docker: use community.docker.docker_prune --- roles/docker/tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'roles/docker') diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 574a17c..ae8f668 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -9,5 +9,11 @@ - name: Clean up Docker data become: true - ansible.builtin.command: docker system prune -a -f --volumes - changed_when: true + community.docker.docker_prune: + containers: true + images: true + images_filters: + dangling: false + networks: true + volumes: true + builder_cache: true -- cgit v1.2.3