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>
with_items: "{{ ceph_journal_partition_to_erase_path.stdout_lines }}"
when:
- ceph_journal_partlabels.rc == 0
+ - raw_multi_journal is defined
- raw_multi_journal