From 67a665ee98c2a868b35a62a2a41bc946a59c7cba Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Wed, 29 Nov 2017 23:05:44 -0600 Subject: [PATCH] Ensure the role works when run in serial The role tests execute in parallel however the integrated repo executes in serial. This change simply makes sure that this role always functions no matter the execution method. Change-Id: I3938eb54996a8ea5183cf4109b992451345b0585 Signed-off-by: Kevin Carter --- handlers/main.yml | 1 + tasks/galera_install.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 89c00baa..04e9430a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -81,6 +81,7 @@ delegate_to: "{{ item }}" when: - hostvars[item]['galera_cluster_ready'] is defined + - hostvars[item]['galera_deployed'] | default(false) | bool with_items: - "{{ ansible_play_hosts }}" run_once: true diff --git a/tasks/galera_install.yml b/tasks/galera_install.yml index f2969f51..1f9a48cb 100644 --- a/tasks/galera_install.yml +++ b/tasks/galera_install.yml @@ -91,3 +91,7 @@ section: galera option: deployed value: true + +- name: Set the galera existing cluster fact + set_fact: + galera_deployed: true