From fccc604f4adbbe506070f28b98a59bdcd47f6287 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 26 Sep 2017 15:14:29 -0500 Subject: [PATCH] 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 --- infrastructure-playbooks/purge-cluster.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 2e8c93afc..67884ed92 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -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