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