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