kolla-ansible/ansible/roles/destroy/tasks/cleanup_images.yml
caoyuan 8f2256d299 Optimise the destroy role by script module
Ansible provide script module to run shell script, The local script at
path will be transferred to the remote node and then executed, so no
need to copy script to remote node and use shell moulde to run it.
this patch optimise it.

Change-Id: If774502b66652f25593cda137cc8a5baefbd9695
2018-03-07 01:46:25 +00:00

6 lines
118 B
YAML

---
- name: Removing Kolla images
script: ../tools/cleanup-images --all
when:
- destroy_include_images | bool