My Ansible Playbook to install an OpenShift Lab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
499 B

---
- name: Wait for all pending deployments to become ready
command: 'oc get rc -o json -n "{{ threescale_project }}"'
register: rc_state
changed_when: false
retries: "{{ threescale_retries }}"
delay: "{{ threescale_delay }}"
until: 'rc_state.stdout |from_json |json_query(''items[? status.replicas != `0` && (status.readyReplicas == ""|| status.readyReplicas == `0`) ].metadata.annotations."openshift.io/deployment-config.name"'') |intersect(pod_to_wait) |length == 0'