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