14 lines
304 B
YAML
Raw Normal View History

---
- 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)