]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-docker-cluster.yml: Default lvm_volumes
authorZack Cerza <zack@redhat.com>
Fri, 4 Jan 2019 20:26:59 +0000 (13:26 -0700)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 May 2019 14:39:13 +0000 (16:39 +0200)
We were failing when that variable is unset; purge-cluster.yml contains
this workaround.

Signed-off-by: Zack Cerza <zack@redhat.com>
infrastructure-playbooks/purge-docker-cluster.yml

index 447c9474a0f7a8a7e2490713f2e72184c273a0c6..cf8b3de53045229bac1ff296cff9efe2f7cecb56 100644 (file)
     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 }}"