Update dockerprune.yml

This commit is contained in:
2025-07-31 12:37:04 +02:00
parent 1a2f6ec536
commit a43ebe5384

View File

@@ -4,11 +4,11 @@
become: yes become: yes
tasks: tasks:
- name: Prune dangling images - name: Prune dangling images
docker_image: ansible.builtin.shell: docker image prune -f
prune: yes args:
dangling: yes warn: false
- name: Prune all unused images - name: Prune all unused images
command: docker image prune -a -f ansible.builtin.shell: docker image prune -a -f
args: args:
warn: false warn: false