kolla-ansible/ansible/roles/prune-images/tasks/prune_images.yml
Dincer Celik b7728ea890 Adds Docker image pruning command
This change introduces prune-images command.

Uses docker_prune module of Ansible that comes with version 2.8.

Depends-On: https://review.opendev.org/#/c/699333/

Implements: blueprint docker-image-pruning

Change-Id: Icbf374dd50e1cc1f1604bb4fa779b34279efd50c
2020-01-27 13:44:01 +03:00

9 lines
175 B
YAML

---
- name: Pruning Kolla images
become: true
docker_prune:
images: yes
images_filters:
label: kolla_version
timeout: "{{ docker_image_prune_timeout }}"