mirror of https://github.com/ceph/ceph-ansible.git
facts: fix mgr/mon collocation
`service dump` hangs when no active mgr is available. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/7161/head
parent
1bb71b7626
commit
d9feaf8ade
|
@ -211,6 +211,7 @@
|
|||
when:
|
||||
- (inventory_hostname in groups.get(rgw_group_name, []) or inventory_hostname in groups.get(nfs_group_name, []))
|
||||
- groups.get(mon_group_name, []) | length > 0
|
||||
- handler_mgr_status | default(False)
|
||||
block:
|
||||
- name: get ceph current status
|
||||
command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json"
|
||||
|
|
Loading…
Reference in New Issue