---
- name: Prune unused Docker images
hosts: all
become: false
tasks:
- name: Prune unused Docker images using shell
shell: docker image prune -f