Files
proxmox-docker-update/playbooks/dockerPrune.yaml

15 lines
455 B
YAML

# Use with: ansible-playbook -i inventories/inventory.proxmox.yml playbooks/dockerPrune.yaml --limit docker_hosts
- name: Prune Docker resources
hosts: docker_hosts
become: true
gather_facts: no
ignore_errors: true
tasks:
- name: Prune all unused containers, images, networks, volumes
community.docker.docker_prune:
containers: true
images: true
networks: true
volumes: true
builder_cache: true