From e14157c8bb724353ec5e8de2bf494b30e3d8816d Mon Sep 17 00:00:00 2001 From: Marcus Hufvudsson Date: Wed, 18 Mar 2026 12:08:13 +0100 Subject: [PATCH] Use return code to track command status instead of a string since this doesn't seem to work in all circumstances Signed-off-by: Marcus Hufvudsson --- roles/roc-load/tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/roc-load/tasks/install.yml b/roles/roc-load/tasks/install.yml index 7fdaf66..a72477b 100644 --- a/roles/roc-load/tasks/install.yml +++ b/roles/roc-load/tasks/install.yml @@ -45,7 +45,7 @@ --header "Content-Type: application/json" --data-raw \ "$(cat /tmp/roc-models.json)"' register: result - until: result.stdout.find("command terminated") == -1 + until: result.rc == 0 retries: 5 delay: 10 when: inventory_hostname in groups['master_nodes']