purge-docker-cluster.yml: Default lvm_volumes

We were failing when that variable is unset; purge-cluster.yml contains
this workaround.

Signed-off-by: Zack Cerza <zack@redhat.com>
pull/3991/head
Zack Cerza 2019-01-04 13:26:59 -07:00 committed by Guillaume Abrioux
parent 2f141a6e80
commit 9b4339a2ba
1 changed files with 5 additions and 0 deletions

View File

@ -332,6 +332,11 @@
register: remove_osd_mountpoints
ignore_errors: true
- name: default lvm_volumes if not defined
set_fact:
lvm_volumes: []
when: lvm_volumes is not defined
- name: zap and destroy osds created by ceph-volume with lvm_volumes
ceph_volume:
data: "{{ item.data }}"