Update prunedocker.yml

This commit is contained in:
2025-07-31 12:18:52 +02:00
parent c77802500f
commit 0f016dc734

View File

@@ -18,16 +18,16 @@
##Prune images and everything else - be careful with this one
---
- name: Prune unused Docker images & everything else
hosts: all
become: yes
tasks:
- name: Prune dangling images
community.docker.docker_prune:
images: yes
dangling: yes
##- name: Prune unused Docker images & everything else
##hosts: all
##become: yes
##tasks:
##- name: Prune dangling images
##community.docker.docker_prune:
##images: yes
##dangling: yes
- name: Prune all unused Docker objects (system prune)
ansible.builtin.shell: docker system prune -a -f
args:
warn: false
##- name: Prune all unused Docker objects (system prune)
##ansible.builtin.shell: docker system prune -a -f
##args:
##warn: false