|
@@ -46,3 +46,22 @@
|
|
|
state: absent
|
|
|
name: "{{ mktemp.stdout }}"
|
|
|
changed_when: False
|
|
|
+
|
|
|
+- name: Wait for the sync daemonset to become ready and available
|
|
|
+ oc_obj:
|
|
|
+ state: list
|
|
|
+ kind: daemonset
|
|
|
+ name: sync
|
|
|
+ namespace: openshift-node
|
|
|
+ register: __status_of_sync_ds
|
|
|
+ until:
|
|
|
+ - __status_of_sync_ds.results is defined
|
|
|
+ - __status_of_sync_ds.results.results is defined
|
|
|
+ - __status_of_sync_ds.results.results | length > 0
|
|
|
+ - __status_of_sync_ds.results.results[0].status is defined
|
|
|
+ - __status_of_sync_ds.results.results[0].status.numberAvailable is defined
|
|
|
+ - __status_of_sync_ds.results.results[0].status.desiredNumberScheduled is defined
|
|
|
+ - __status_of_sync_ds.results.results[0].status.numberAvailable == __status_of_sync_ds.results.results[0].status.desiredNumberScheduled
|
|
|
+ retries: 60
|
|
|
+ delay: 30
|
|
|
+ failed_when: false
|