From c40f9dd29825d26d505b45c05e4088bc700b6e53 Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Mon, 7 Nov 2016 18:35:28 +0100 Subject: [PATCH] Added a 15 sec pause before the Native User List command. Command was run when the realm was not initialized yet, causing the playbook to fail. --- handlers/shield/elasticsearch-shield-native.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/shield/elasticsearch-shield-native.yml b/handlers/shield/elasticsearch-shield-native.yml index 4836131..8875c0e 100644 --- a/handlers/shield/elasticsearch-shield-native.yml +++ b/handlers/shield/elasticsearch-shield-native.yml @@ -16,6 +16,10 @@ - set_fact: manage_native_roles=true when: es_roles is defined and es_roles.native is defined +# If playbook runs too fast, Native commands could fail as the Native Realm is not yet up +- name: Wait 15 seconds for the Native Relm to come up + pause: seconds=15 + #If the node has just has shield installed it maybe either stopped or started 1. if stopped, we need to start to load native realms 2. if started, we need to restart to load #List current users