mirror of https://github.com/ceph/ceph-ansible.git
facts: fix nfs/external cluster scenario
These tasks shouldn't be run when at least 1 monitor isn't present in the inventory. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1937997 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit4.2z1-async1-v4.0.49 v4.0.49.1ccd1cbb732
) (cherry picked from commitbbf8b2fdf6
)
parent
c3304c213b
commit
b8a896f09d
|
@ -232,8 +232,8 @@
|
||||||
|
|
||||||
- name: backward compatibility tasks related
|
- name: backward compatibility tasks related
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups.get(rgw_group_name, [])
|
- (inventory_hostname in groups.get(rgw_group_name, []) or inventory_hostname in groups.get(nfs_group_name, []))
|
||||||
or inventory_hostname in groups.get(nfs_group_name, [])
|
- groups.get(mon_group_name, []) | length > 0
|
||||||
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"
|
||||||
|
|
Loading…
Reference in New Issue