]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: fix external cluster bug
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 May 2019 14:42:49 +0000 (16:42 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 May 2019 15:53:53 +0000 (17:53 +0200)
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 <gabrioux@redhat.com>
roles/ceph-facts/tasks/facts.yml

index 8e63e924aa33abc0ed0bde759f24c5b9922867c8..6753ce1bead9edcc2f854183800d2dc1efc398f6 100644 (file)
 
 - 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