diff --git a/ansible/roles/grafana/tasks/post_config.yml b/ansible/roles/grafana/tasks/post_config.yml index 3833c1fdee..a3615505f0 100644 --- a/ansible/roles/grafana/tasks/post_config.yml +++ b/ansible/roles/grafana/tasks/post_config.yml @@ -1,8 +1,14 @@ --- -- name: Wait for grafana port - wait_for: - host: "{{ api_interface_address }}" - port: "{{ grafana_server_port }}" +- name: Wait for grafana application ready + uri: + url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ grafana_server_port }}" + status_code: 200 + register: result + until: result.status == 200 + retries: 10 + delay: 2 + run_once: true + connection: local - name: Enable influxdb datasource uri: