Add dockerprune.yml

This commit is contained in:
2025-07-31 12:27:07 +02:00
parent ef7983b791
commit 1a2f6ec536

14
dockerprune.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- name: Prune unused Docker images
hosts: all
become: yes
tasks:
- name: Prune dangling images
docker_image:
prune: yes
dangling: yes
- name: Prune all unused images
command: docker image prune -a -f
args:
warn: false