File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,20 @@ Examples
701701 wait_sleep : 10
702702 wait_timeout : 360
703703
704+ - name : Wait for OpenShift bootstrap to complete
705+ kubernetes.core.k8s_info :
706+ kind : ConfigMap
707+ name : bootstrap
708+ namespace : kube-system
709+ register : ocp_bootstrap_status
710+ until : >
711+ ocp_bootstrap_status.resources is defined and
712+ (ocp_bootstrap_status.resources | length > 0) and
713+ (ocp_bootstrap_status.resources[0].data.status is defined) and
714+ (ocp_bootstrap_status.resources[0].data.status == 'complete')
715+ retries : 60
716+ delay : 15
717+
704718
705719
706720 Return Values
Original file line number Diff line number Diff line change 120120 namespace: default
121121 wait_sleep: 10
122122 wait_timeout: 360
123+
124+ - name: Wait for OpenShift bootstrap to complete
125+ kubernetes.core.k8s_info:
126+ kind: ConfigMap
127+ name: bootstrap
128+ namespace: kube-system
129+ register: ocp_bootstrap_status
130+ until: >
131+ ocp_bootstrap_status.resources is defined and
132+ (ocp_bootstrap_status.resources | length > 0) and
133+ (ocp_bootstrap_status.resources[0].data.status is defined) and
134+ (ocp_bootstrap_status.resources[0].data.status == 'complete')
135+ retries: 60
136+ delay: 15
123137"""
124138
125139RETURN = r"""
You can’t perform that action at this time.
0 commit comments