ffd53512af
For now role haproxy is maintaining haproxy and keepalived. In follow-up changes there is also proxysql added. This patch is *only* renaming/moving stuff to more prominent role loadbalancer, and moving also specific templates to subdirectory. This was done only to better diff in follow-up changes. Change-Id: I1d39d5bcaefc4016983bf267a2736b742cc3a555
21 lines
750 B
YAML
21 lines
750 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['loadbalancer']
|
|
|
|
- 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
|