From 1cd507c294ec60791559f29dca81587e10cd9569 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 12 Nov 2021 16:53:53 +0100 Subject: [PATCH] add a task to prune data --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 12caa46..2cdfec9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -104,3 +104,13 @@ pull: "yes" remove_orphans: "yes" when: docker_skip_project is undefined + +- name: "Prune old data" + community.docker.docker_prune: + containers: yes + images: yes + images_filters: + dangling: true + networks: yes + volumes: yes + builder_cache: yes