use ansible_ssh_host ip address for consul service health checks

This commit is contained in:
Jonathan Math 2021-03-04 13:30:02 -05:00
parent 7f3d1ca080
commit 26fe4f82b8

View file

@ -7,7 +7,7 @@
"port": 5432,
"checks": [{
"id": "postgres-ping",
"http": "http://127.0.0.1:5579/db_check/postgres",
"http": "http://{{ ansible_ssh_host }}:5579/db_check/postgres",
"interval": "15s"
}]
}