2014-12-17 21:48:03 +08:00
|
|
|
---
|
|
|
|
# NOTE (leseb): some devices might miss partition label which which will result
|
|
|
|
# in ceph-disk failing to prepare OSD. Thus zapping them prior to prepare the OSD
|
|
|
|
# ensures that the device will get successfully prepared.
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: erasing partitions and labels from OSD disk(s)
|
2014-12-17 21:48:03 +08:00
|
|
|
command: ceph-disk zap {{ item }}
|
|
|
|
when: zap_devices and (journal_collocation or raw_multi_journal)
|
|
|
|
with_items: devices
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2014-12-17 21:48:03 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: erasing partitions and labels from the journal device(s)
|
2014-12-17 21:48:03 +08:00
|
|
|
command: ceph-disk zap {{ item }}
|
|
|
|
when: zap_devices and raw_multi_journal
|
|
|
|
with_items: raw_journal_devices
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|