blob: 7e8a7a596aa3a0c4090ea83c076f951151e5dafe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
- name: Wait for API to become available
# Using curl here since the uri module requires python-httplib2 and
# wait_for port doesn't provide health information.
command: >
curl --silent --tlsv1.2
--cacert {{ openshift.common.config_base }}/master/ca-bundle.crt
{{ openshift.master.api_url }}/healthz/ready
register: l_api_available_output
until: l_api_available_output.stdout == 'ok'
retries: 120
delay: 1
run_once: true
changed_when: false
|