facts: fix mon/mgr collocation

`service dump` hangs when no active mgr is available.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
subset-debug-6.0
Guillaume Abrioux 2022-04-19 23:39:12 +02:00
parent 5596360ffd
commit 8ca2e9cafa
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@
when: 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 - groups.get(mon_group_name, []) | length > 0
- handler_mgr_status | default(False)
block: block:
- name: get ceph current status - name: get ceph current status
command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json" command: "{{ timeout_command }} {{ _container_exec_cmd | default('') }} ceph --cluster {{ cluster }} service dump -f json"