Skip to content

Instantly share code, notes, and snippets.

@jwhb
Created November 25, 2020 10:35
Show Gist options
  • Save jwhb/84cf9fd8de7940642edb3511851b27e4 to your computer and use it in GitHub Desktop.
Save jwhb/84cf9fd8de7940642edb3511851b27e4 to your computer and use it in GitHub Desktop.
Ansible: Wait for OpenShift Cluster to be installed
---
- name: Wait for OpenShift Cluster to be installed
hosts: localhost
tasks:
- name: Wait for Cluster to be installed
k8s_info:
api_version: config.openshift.io/v1
kind: ClusterVersion
name: version
register: ocp_clusterversion_result
until: ocp_clusterversion_result.resources[0].status | json_query("conditions[?type=='Available' && status=='True']")
delay: 60
retries: 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment