---
- import_tasks: lookup_cluster.yml

- include_tasks: bootstrap_cluster.yml
  when:
    - not mariadb_cluster_exists
    - inventory_hostname == groups[mariadb_shard_group][0]

- include_tasks: recover_cluster.yml
  when: mariadb_recover | default(False)
