]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: fix failure when raw_multi_journal is not defined
authorAndrew Schoen <aschoen@redhat.com>
Thu, 26 Jan 2017 18:07:42 +0000 (12:07 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 27 Jan 2017 13:56:31 +0000 (07:56 -0600)
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 d3cb8dba4e05f2081051855949b8ec5de34b19f0)

infrastructure-playbooks/purge-cluster.yml

index 019e8a722fc8abd9e0450cae2c49b33c9b18215e..8fd30dfdaf4ff23017c3b30f347204bd76cf907b 100644 (file)
     with_items: "{{ ceph_journal_partition_to_erase_path.stdout_lines }}"
     when:
       - ceph_journal_partlabels.rc == 0
+      - raw_multi_journal is defined
       - raw_multi_journal