Files
Ansible/prunedocker.yml
2025-07-31 12:19:34 +02:00

14 lines
278 B
YAML

---
- 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