From b1db566cda24d1ebedc8b549a65920710de95015 Mon Sep 17 00:00:00 2001 From: gaima8 <7595658+gaima8@users.noreply.github.com> Date: Sat, 23 Oct 2021 19:41:39 +0100 Subject: [PATCH] command necessarily causes a change on each invocation breaking idempotency, wait_for accomplishes the same goal without the change --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2e53b9ca..c0ad7004 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