Update docker-prune.yml

This commit is contained in:
2025-07-31 12:49:41 +02:00
parent ece8d7aef0
commit 624a88311d
2 changed files with 10 additions and 9 deletions

View File

@@ -1,9 +0,0 @@
---
- name: Prune unused Docker images
hosts: all
become: yes
tasks:
- name: Prune all unused Docker images
ansible.builtin.shell: docker image prune -a -f
args:
warn: false

10
docker-prune.yml Normal file
View File

@@ -0,0 +1,10 @@
---
- name: Prune unused Docker images
hosts: all
become: yes
tasks:
- name: Prune dangling images
shell: docker image prune -f
- name: Prune all unused images
shell: docker image prune -a -f