kolla-ansible/ansible/roles/mariadb/tasks/bootstrap.yml
caoyuan 5cd55bf236 Optimize reconfiguration for mariadb
Change-Id: I278609f9832955849bc9381120a1b260f5a03f1b
Partially-implements: blueprint better-reconfigure
2017-07-22 08:50:08 +08:00

14 lines
286 B
YAML

---
- set_fact:
master_host: "{{ groups['mariadb'][0] }}"
- include: lookup_cluster.yml
- include: bootstrap_cluster.yml
when:
- not has_cluster | bool
- inventory_hostname == groups['mariadb'][0]
- include: recover_cluster.yml
when: mariadb_recover | default(False)