Fixes: https://github.com/ceph/ceph-ansible/issues/3156
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
failed_when: false
register: ceph_lockbox_partition_to_erase_path
- - name: zap and destroy OSDs created by ceph-volume
+ - name: zap and destroy osds created by ceph-volume with lvm_volumes
ceph_volume:
data: "{{ item.data }}"
data_vg: "{{ item.data_vg|default(omit) }}"
when:
- osd_scenario == "lvm"
+ - name: zap and destroy osds created by ceph-volume with devices
+ ceph_volume:
+ data: "{{ item }}"
+ action: "zap"
+ environment:
+ CEPH_VOLUME_DEBUG: 1
+ with_items: "{{ devices | default([]) }}"
+ when:
+ - osd_scenario == "lvm"
+
- name: get ceph block partitions
shell: |
blkid -o device -t PARTLABEL="ceph block"