a6372a66f2
The MariaDB handlers require master_host to be set. TrivialFix Change-Id: I162efbd9e615b86dcdc6e8a4af081cda2f8b0b2b
15 lines
345 B
YAML
15 lines
345 B
YAML
---
|
|
- name: Set a fact about the master host
|
|
set_fact:
|
|
master_host: "{{ groups['mariadb'][0] }}"
|
|
|
|
- include_tasks: lookup_cluster.yml
|
|
|
|
- include_tasks: bootstrap_cluster.yml
|
|
when:
|
|
- not has_cluster | bool
|
|
- inventory_hostname == groups['mariadb'][0]
|
|
|
|
- include_tasks: recover_cluster.yml
|
|
when: mariadb_recover | default(False)
|