mirror of https://github.com/ceph/ceph-ansible.git
purge-cluster: fix failure when raw_multi_journal is not defined
Because the purge-cluster.yml playbook does not have access to the roles
default vars then we can be sure that raw_multi_journal is defined. For
example, if this was purging a dmcrypt journal then raw_multi_journal
might not be defined at all in group_vars/all.yml or
group_vars/osds.yml.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit d3cb8dba4e
)
pull/1255/head
parent
03d229dcff
commit
bbf426c5d8
|
@ -439,6 +439,7 @@
|
|||
with_items: "{{ ceph_journal_partition_to_erase_path.stdout_lines }}"
|
||||
when:
|
||||
- ceph_journal_partlabels.rc == 0
|
||||
- raw_multi_journal is defined
|
||||
- raw_multi_journal
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue