kolla-ansible/ansible/roles/mariadb/tasks/bootstrap.yml
Mark Goddard a6372a66f2 Fix deploy-containers command for mariadb
The MariaDB handlers require master_host to be set.

TrivialFix

Change-Id: I162efbd9e615b86dcdc6e8a4af081cda2f8b0b2b
2019-10-25 17:20:52 +00:00

15 lines
345 B
YAML

---
- name: Set a fact about the master host
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)