Files
Ansible/dockerclean.yml
2025-07-31 12:41:45 +02:00

15 lines
315 B
YAML

---
- name: Prune unused Docker images
hosts: all
become: yes
tasks:
- name: Prune dangling images
ansible.builtin.shell: docker image prune -f
args:
warn: false
- name: Prune all unused images
ansible.builtin.shell: docker image prune -a -f
args:
warn: false