From 930c5516547683218467cf34fd48fc47f6708fe5 Mon Sep 17 00:00:00 2001 From: abikouo <79859644+abikouo@users.noreply.github.com> Date: Thu, 20 May 2021 12:16:57 +0200 Subject: [PATCH] Update k8s.py --- plugins/modules/k8s.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/modules/k8s.py b/plugins/modules/k8s.py index 9ee819d2..6e61b6db 100644 --- a/plugins/modules/k8s.py +++ b/plugins/modules/k8s.py @@ -260,13 +260,14 @@ EXAMPLES = r''' wait_property: property: status.loadBalancer.ingress[*].ip -# Wait for containers inside pod to be running -- name: Create Pod and wait for containers for be running +# Wait for container inside a pod to be ready +- name: Create Pod and wait for containers to be ready kubernetes.core.k8s: template: pod.yaml wait: yes wait_property: - property: status.containerStatuses[*].state.running + property: status.containerStatuses[*].ready + value: "true" # Patch existing namespace : add label - name: add label to existing namespace