diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 66cea9c83..822ca41d5 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -232,8 +232,8 @@ - name: backward compatibility tasks related when: - - inventory_hostname in groups.get(rgw_group_name, []) - or inventory_hostname in groups.get(nfs_group_name, []) + - (inventory_hostname in groups.get(rgw_group_name, []) or inventory_hostname in groups.get(nfs_group_name, [])) + - groups.get(mon_group_name, []) | length > 0 block: - name: get ceph current status command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json"