kolla-ansible/ansible/roles/destroy/tasks/cleanup_host.yml
Takashi Sogabe b6de8fdc06 Keepalived leaves VIP on the host in case of accidental removal.
This patch removes VIPs when 'kolla-ansible destroy' is invoked.

Change-Id: I263b9bc852c7bc3448a6a15b3115b1f226071afc
Closes-Bug: #1605442
2016-09-07 17:13:58 +09:00

13 lines
383 B
YAML

---
- name: Destroying Kolla host configuration
command: >
env enable_haproxy={{ enable_haproxy }}
kolla_internal_vip_address={{ kolla_internal_vip_address }}
kolla_external_vip_address={{ kolla_external_vip_address }}
/tmp/kolla-cleanup/tools/cleanup-host
- name: Destroying kolla-cleanup folder
file:
path: /tmp/kolla-cleanup
state: absent