b51eeed89e
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
14 lines
304 B
YAML
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)
|