kolla-ansible/ansible/roles/cleanup/tasks/cleanup_host.yml
Christian Berendt 52d7daadd2 Use file module instead of running rm to remove a directory
This will solve the following issue when running the
kolla-ansible cleanup command:

[WARNING]: Consider using file module with state=absent rather
than running rm

Closes-bug: #1586406
Change-Id: I366b6f27e697b24c6c54882c08afe4048803b4e8
2016-05-27 13:58:31 +00:00

9 lines
169 B
YAML

---
- name: Cleaning host
command: /tmp/kolla-cleanup/tools/cleanup-host
- name: Removing kolla-cleanup folder
file:
path: /tmp/kolla-cleanup
state: absent