From 99888cd85b9513b0d06e636865716c697aaf90ef Mon Sep 17 00:00:00 2001 From: apollo Date: Thu, 6 Jun 2024 17:45:55 +1000 Subject: [PATCH] fix logical error in main.yml fixes issue 52 --- src/ansible/roles/ad/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansible/roles/ad/tasks/main.yml b/src/ansible/roles/ad/tasks/main.yml index 9f02b3f..a594928 100644 --- a/src/ansible/roles/ad/tasks/main.yml +++ b/src/ansible/roles/ad/tasks/main.yml @@ -84,7 +84,7 @@ register: result failed_when: "result.rc != 255 and result.rc != 0" changed_when: "result.rc == 0" - until: "result.rc == 0" + until: "result.rc == 255 or result.rc == 0" # The AD is sometimes not ready to proccess requests so we retry # to make it stable. retries: 5