Update dockerprune.yml
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user