kolla-ansible/ansible/roles/mariadb/tasks/check.yml
Jim Rollenhagen a47870032d Use database_address and database_port var for mariadb check
This is how services reach mariadb; verify it that way.

Closes-Bug: #1823005
Change-Id: I9924ad050118b8a853e2309654a089f65178cd77
(cherry picked from commit 524f969bfc)
2019-04-05 12:06:04 +00:00

9 lines
277 B
YAML

---
- name: Waiting for MariaDB service to be ready through VIP
command: "docker exec mariadb mysql -h {{ database_address }} -P {{ database_port }} -u haproxy -e 'show databases;'"
register: result
until: result is success
changed_when: False
retries: 6
delay: 10