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>
- 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"