Files
Ansible/prunedocker.yml
2025-07-31 12:20:59 +02:00

15 lines
279 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