diff --git a/ansible/roles/mariadb/tasks/bootstrap.yml b/ansible/roles/mariadb/tasks/bootstrap.yml index d2db07fce2..249af27e03 100644 --- a/ansible/roles/mariadb/tasks/bootstrap.yml +++ b/ansible/roles/mariadb/tasks/bootstrap.yml @@ -1,5 +1,6 @@ --- -- set_fact: +- name: Set a fact about the master host + set_fact: master_host: "{{ groups['mariadb'][0] }}" - include_tasks: lookup_cluster.yml diff --git a/ansible/roles/mariadb/tasks/deploy-containers.yml b/ansible/roles/mariadb/tasks/deploy-containers.yml index eb24ab5c7a..9be12d61a3 100644 --- a/ansible/roles/mariadb/tasks/deploy-containers.yml +++ b/ansible/roles/mariadb/tasks/deploy-containers.yml @@ -1,2 +1,6 @@ --- +- name: Set a fact about the master host + set_fact: + master_host: "{{ groups['mariadb'][0] }}" + - import_tasks: check-containers.yml