# Waiting for Kubernetes Objects

**URL:** <https://forum.ansible.com/t/waiting-for-kubernetes-objects/33377>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [July 12, 2020, 8:50am UTC](https://forum.ansible.com/t/waiting-for-kubernetes-objects/33377 "2020-07-12T08:50:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kameshs](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@kameshs](https://forum.ansible.com/u/kameshs)\
**Post date:** [July 12, 2020, 8:50am UTC](https://forum.ansible.com/t/waiting-for-kubernetes-objects/33377/1 "2020-07-12T08:50:12Z")

</div>

While using `community.kubernetes.k8s` module, I am seeing that `wait: yes` is cause the resource creation to fail in case of definition is a multi document yaml. Is there a way to wait for multi document k8s operations to complete ?

e.g.

```auto
- name: k8s apply crds

k8s:
state: present
definition: "{{ item.manifest | from_yaml_all | list }}"
wait: yes
loop:
- name: serving-core.yaml
manifest: "{{ lookup('file',knative_manifests_dir + '/serving-core.yaml')}}"
loop_control:
label: "{{item.name}}"

```
