fix docker prune playbook
This commit is contained in:
parent
f7552a3f64
commit
3e63d78e62
1 changed files with 4 additions and 6 deletions
|
@ -3,9 +3,7 @@
|
|||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Prune unused Docker images
|
||||
docker_image:
|
||||
name: all
|
||||
state: absent
|
||||
force: yes
|
||||
prune: yes
|
||||
- name: Prune unused Docker images using shell
|
||||
shell: docker image prune -f
|
||||
args:
|
||||
warn: false
|
||||
|
|
Loading…
Reference in a new issue