Created
November 25, 2020 10:35
-
-
Save jwhb/84cf9fd8de7940642edb3511851b27e4 to your computer and use it in GitHub Desktop.
Ansible: Wait for OpenShift Cluster to be installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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