From 7fd243827c2cdaf75c810c7f42c80c29eff589ce Mon Sep 17 00:00:00 2001 From: pemontto Date: Fri, 25 Oct 2019 10:10:42 +0100 Subject: [PATCH] Add configurable native realm sleep --- defaults/main.yml | 1 + tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 08826f9..546bd05 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -40,6 +40,7 @@ es_api_scheme: "http" es_api_host: "localhost" es_api_port: 9200 es_api_uri: "{{ es_api_scheme }}://{{ es_api_host }}:{{ es_api_port }}" +es_api_sleep: 15 es_debian_startup_timeout: 10 # JVM custom parameters diff --git a/tasks/main.yml b/tasks/main.yml index 1e62770..8cd4bf5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -82,8 +82,8 @@ - (es_users is defined and es_users.native is defined) or (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 Realm to come up - command: sleep 15 +- name: Wait {{ es_api_sleep }} seconds for the Native Realm to come up + command: "sleep {{ es_api_sleep }}" when: manage_native_realm | bool - name: activate-license