kolla-ansible/ansible/roles/prechecks/tasks/database_checks.yml
Eduardo Gonzalez ea1a1dee0d Verify YAML syntax in gates
This patchset implements yamllint test to all *.yml
files.

Also fixes syntax errors to make jobs to pass.

Change-Id: I3186adf9835b4d0cada272d156b17d1bc9c2b799
2018-03-26 17:56:22 +02:00

21 lines
745 B
YAML

---
- name: "Check if external mariadb hosts are reachable from the load balancer"
wait_for:
msg: "The {{ item }} host is not accessible from {{ inventory_hostname }}"
host: "{{ item }}"
port: "{{ database_port }}"
with_items: "{{ groups['mariadb'] }}"
when:
- not enable_mariadb | bool
- enable_external_mariadb_load_balancer | bool
- inventory_hostname in groups['haproxy']
- name: "Check if external database address is reachable from all hosts"
wait_for:
msg: "The {{ database_address }} host is not accessible from {{ inventory_hostname }}"
host: "{{ database_address }}"
port: "{{ database_port }}"
when:
- not enable_mariadb | bool
- not enable_external_mariadb_load_balancer | bool