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 <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter
2017-11-29 23:05:44 -06:00
parent 691ffb3710
commit 67a665ee98
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -91,3 +91,7 @@
section: galera
option: deployed
value: true
- name: Set the galera existing cluster fact
set_fact:
galera_deployed: true