diff --git a/roles/ceph-facts/tasks/get_def_crush_rule_name.yml b/roles/ceph-facts/tasks/get_def_crush_rule_name.yml index 475fce2a99..f7c116b662 100644 --- a/roles/ceph-facts/tasks/get_def_crush_rule_name.yml +++ b/roles/ceph-facts/tasks/get_def_crush_rule_name.yml @@ -9,6 +9,6 @@ - name: get current default crush rule name set_fact: ceph_osd_pool_default_crush_rule_name: "{{ item.rule_name }}" - with_items: "{{ default_crush_rule_details.stdout | default('{}') | from_json }}" + with_items: "{{ default_crush_rule_details.stdout | default('{}', True) | from_json }}" run_once: True - when: item.rule_id | int == osd_pool_default_crush_rule | int \ No newline at end of file + when: item.rule_id | int == osd_pool_default_crush_rule | int