Update file main.yml
This commit is contained in:
parent
c7ce1e3355
commit
3167d92f16
@ -86,14 +86,12 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: grafana_status.stdout
|
var: grafana_status.stdout
|
||||||
|
|
||||||
- name: Check VictoriaMetrics connectivity from Grafana container using IP
|
- name: Verify all services are running
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
VM_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' victoriametrics)
|
cd "{{ grafana_base_dir }}" && docker compose ps
|
||||||
docker exec grafana curl -s http://$$VM_IP:8428/health
|
register: services_status
|
||||||
register: vm_health_ip
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: Show VictoriaMetrics health check via IP
|
- name: Show services status
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: vm_health_ip.stdout
|
var: services_status.stdout
|
||||||
Loading…
Reference in New Issue
Block a user