christianlempa-boilerplates/ansible/maintenance/maint-docker-clean.yaml

15 lines
317 B
YAML

---
- name: Clean docker
hosts: "{{ my_hosts | d([]) }}"
tasks:
- name: Prune non-dangling images
community.docker.docker_prune:
containers: false
images: true
images_filters:
dangling: false
networks: false
volumes: false
builder_cache: false