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
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Prune unused Docker images
|
- name: Prune unused Docker images using shell
|
||||||
docker_image:
|
shell: docker image prune -f
|
||||||
name: all
|
args:
|
||||||
state: absent
|
warn: false
|
||||||
force: yes
|
|
||||||
prune: yes
|
|
||||||
|
|
Loading…
Reference in a new issue