If we're purging a containerized cluster that did not use the
raw_multi_journal OSD scenario then raw_journal_devices will not be
defined which causes the playbook to fail.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1455187
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit
8e322d4825a0c53ae260faa3324eef4dfd0b28b0)
zap_device
with_items:
- "{{ ceph_osd_docker_devices }}"
- - "{{ raw_journal_devices }}"
+ - "{{ raw_journal_devices|default([]) }}"
- name: wait until the zap containers die
shell: |
state: absent
with_items:
- "{{ ceph_osd_docker_devices }}"
- - "{{ raw_journal_devices }}"
+ - "{{ raw_journal_devices|default([]) }}"
- name: remove ceph osd service
file: