From 90ecd51c32c87a1fa57a90148da290f8afa8b964 Mon Sep 17 00:00:00 2001 From: Mike Williams <7595658+gaima8@users.noreply.github.com> Date: Wed, 8 Dec 2021 16:45:11 +0000 Subject: [PATCH] command necessarily causes a change on each invocation breaking idempotency, wait_for accomplishes the same goal without the change (#831) --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2e53b9c..c0ad700 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -83,7 +83,8 @@ # If playbook runs too fast, Native commands could fail as the Native Realm is not yet up - name: Wait {{ es_api_sleep }} seconds for the Native Realm to come up - command: "sleep {{ es_api_sleep }}" + wait_for: + timeout: "{{ es_api_sleep }}" when: manage_native_realm | bool - name: activate-license