Update prunedocker.yml
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
##Prune just images
|
|
||||||
|
|
||||||
---
|
---
|
||||||
- name: Prune unused Docker images
|
- name: Prune unused Docker images
|
||||||
hosts: all
|
hosts: all
|
||||||
@@ -13,21 +11,4 @@
|
|||||||
- name: Prune all unused images
|
- name: Prune all unused images
|
||||||
command: docker image prune -a -f
|
command: docker image prune -a -f
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
|
||||||
##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 all unused Docker objects (system prune)
|
|
||||||
##ansible.builtin.shell: docker system prune -a -f
|
|
||||||
##args:
|
|
||||||
##warn: false
|
|
||||||
Reference in New Issue
Block a user