From: Guillaume Abrioux Date: Tue, 7 May 2019 14:42:49 +0000 (+0200) Subject: facts: fix external cluster bug X-Git-Tag: v5.0.0alpha1~356 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=936c6fca7851287e03e687c2386bd1f3cb785505;p=ceph-ansible.git facts: fix external cluster bug running an external ceph cluster deployment with (obviously) no monitors defined in inventory breaks with an undefined error because `_monitor_addresses` never get defined. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1707460 Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 8e63e924a..6753ce1be 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -268,6 +268,7 @@ - name: import_tasks set_monitor_address.yml import_tasks: set_monitor_address.yml + when: groups.get(mon_group_name, []) | length > 0 - name: import_tasks set_radosgw_address.yml import_tasks: set_radosgw_address.yml