From 5adc36b4d98972835efd93a817624c37567ba8e3 Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Wed, 23 Oct 2024 15:36:27 +0200 Subject: [PATCH] add play for cleaning up unused Docker data --- playbooks/maintenance.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/playbooks/maintenance.yaml b/playbooks/maintenance.yaml index 2c8b667..2ba32dd 100644 --- a/playbooks/maintenance.yaml +++ b/playbooks/maintenance.yaml @@ -8,3 +8,15 @@ hosts: all roles: - authorized_keys + +- name: Clean up unused Docker data + hosts: Docker_Hosts + tasks: + - name: Clean up unused Docker data + community.docker.docker_prune: + containers: true + images: true + networks: true + volumes: true + builder_cache: true + become: true