# k8s module - operator install - wait\_condition does not wait for readiness of operator

**URL:** <https://forum.ansible.com/t/k8s-module-operator-install-wait-condition-does-not-wait-for-readiness-of-operator/35595>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [August 6, 2021, 8:03am UTC](https://forum.ansible.com/t/k8s-module-operator-install-wait-condition-does-not-wait-for-readiness-of-operator/35595 "2021-08-06T08:03:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Evans](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Martin\_Evans](https://forum.ansible.com/u/Martin_Evans)\
**Post date:** [August 6, 2021, 8:03am UTC](https://forum.ansible.com/t/k8s-module-operator-install-wait-condition-does-not-wait-for-readiness-of-operator/35595/1 "2021-08-06T08:03:14Z")

</div>

Hi,

When I am installing an Operator with a wait condition such as:

wait\_condition: type: “CatalogSourcesUnhealthy”  
status: “False”  
reason: “AllCatalogSourcesHealthy”

The role continues to the next task even when the operator is not fully ready and fails. Subsequent execution of the same role completes ok as a little time has elapsed and the operator is ready.

Task after the operator install fails with:

Error: TASK [storage\_ocs : setup storage cluster] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: [127.0.0.1]: FAILED! =\> {“changed”: false, “msg”: “Failed to find exact match for [ocs.openshift.io/v1.StorageCluster](http://ocs.openshift.io/v1.StorageCluster) by [kind, name, singularName, shortNames]”}

Is there a way to check something other than CatalogSourcesUnhealthy, can I put in an short delay (not ideal but might be an acceptable workaround) ?

Running on OpenShift 4.7  
Ansible 2.9.24

I have tried both RH yum installed Ansible and pip3

And,

kubernetes.core  
ommunity.kubernetes

Thanks,

Martin

---

<div class="post-metadata">

**Author:** ![Martin\_Evans](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Martin\_Evans](https://forum.ansible.com/u/Martin_Evans)\
**Post date:** [August 6, 2021, 10:49am UTC](https://forum.ansible.com/t/k8s-module-operator-install-wait-condition-does-not-wait-for-readiness-of-operator/35595/2 "2021-08-06T10:49:15Z")

</div>

As a (not ideal workaround) I have added:

- name: taking a slight pause for the Operator install to fully complete  
pause:  
minutes: 1

But I would prefer a way to check that the Operator has fully completed, especially as it may only take a few seconds.
