purge-cluster: default lvm_volumes if not defined

Most osd scenarios do not use lvm_volumes, so default it in
purge-cluster.yml if it's not defined.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1916/head
Andrew Schoen 2017-09-26 15:14:29 -05:00
parent 39535dd513
commit fccc604f4a
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,11 @@
tasks:
- name: default lvm_volumes if not defined
set_fact:
lvm_volumes: []
when: lvm_volumes is not defined
- name: get osd numbers
shell: "if [ -d /var/lib/ceph/osd ] ; then ls /var/lib/ceph/osd | sed 's/.*-//' ; fi"
register: osd_ids