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 ##Prune images and everything else - be careful with this one
--- ---
- name: Prune unused Docker images & everything else ##- name: Prune unused Docker images & everything else
hosts: all ##hosts: all
become: yes ##become: yes
tasks: ##tasks:
- name: Prune dangling images ##- name: Prune dangling images
community.docker.docker_prune: ##community.docker.docker_prune:
images: yes ##images: yes
dangling: yes ##dangling: yes
- name: Prune all unused Docker objects (system prune) ##- name: Prune all unused Docker objects (system prune)
ansible.builtin.shell: docker system prune -a -f ##ansible.builtin.shell: docker system prune -a -f
args: ##args:
warn: false ##warn: false