diff --git a/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 b/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 index 327ab65e8..e0db85e7f 100644 --- a/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 +++ b/roles/ceph-handler/templates/restart_rgw_daemon.sh.j2 @@ -28,7 +28,7 @@ RGW_IP={{ hostvars[inventory_hostname]['radosgw_address'] }} \ {% elif ip_version == 'ipv6' %} RGW_IP=[{{ hostvars[inventory_hostname]['radosgw_address'] }}] \ {% endif %} -{% elif radosgw_address is defined and radosgw_address != 'address' -%} +{% elif radosgw_address is defined and radosgw_address != '0.0.0.0' -%} {% if ip_version == 'ipv4' %} RGW_IP={{ radosgw_address }} \ {% elif ip_version == 'ipv6' %}