فهرست منبع

fix import wait condition

Grega Bremec 1 ماه پیش
والد
کامیت
d1445ee844
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      playbooks/roles/deploy-rhbk/tasks/present.yml

+ 3 - 2
playbooks/roles/deploy-rhbk/tasks/present.yml

@@ -335,8 +335,9 @@
       until:
       until:
         - import_running.resources is defined
         - import_running.resources is defined
         - import_running.resources | length > 0
         - import_running.resources | length > 0
-        - import_running.resources[0].status.phase != "Pending"
-        - import_running.resources[0].status.phase != "Running"
+        - import_running.resources[0].status.phase == "Succeeded"
+      retries: 12
+      delay: 5
       when: created_import.changed
       when: created_import.changed
 
 
     - name: Wait for the Keycloak pod to restart.
     - name: Wait for the Keycloak pod to restart.