add docker prune playbook
This commit is contained in:
parent
c4e0b87a02
commit
f7552a3f64
1 changed files with 11 additions and 0 deletions
11
ansible/playbooks/docker-prune.yml
Normal file
11
ansible/playbooks/docker-prune.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Prune unused Docker images
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Prune unused Docker images
|
||||
docker_image:
|
||||
name: all
|
||||
state: absent
|
||||
force: yes
|
||||
prune: yes
|
Loading…
Reference in a new issue