kolla-ansible/ansible/roles/mariadb/tasks/bootstrap.yml
Jeffrey Zhang b51eeed89e Use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com>
Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
2018-07-25 23:57:22 +08:00

14 lines
304 B
YAML

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