]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Setting fact _radosgw_address fail when RGW is on a different network
authorTeoman ONAY <tonay@redhat.com>
Tue, 18 Oct 2022 13:28:54 +0000 (15:28 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 20 Oct 2022 11:59:08 +0000 (13:59 +0200)
Changed the when condition to only execute that fact setting on RGW
nodes while before it was run on all nodes and failed if the node
was not on the same network range as the RGW.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2131150
Signed-off-by: Teoman ONAY <tonay@redhat.com>
roles/ceph-dashboard/tasks/configure_dashboard.yml

index 2eba5ff157288c60f314080624ae0b37ade60b92..40e2cba5a003d13452d74e94e2f3affacda4eae3 100644 (file)
 - include_role:
     name: ceph-facts
     tasks_from: set_radosgw_address.yml
-  loop: "{{ groups[rgw_group_name] }}"
+  loop: "{{ groups.get(rgw_group_name, []) }}"
   loop_control:
     loop_var: ceph_dashboard_call_item
+  when: inventory_hostname in groups.get(rgw_group_name, [])
 
 - name: disable SSL for dashboard
   when: dashboard_protocol == "http"