verify_api_server.yml 500 B

12345678910111213141516
  1. ---
  2. # Ensure localhost master is responding.
  3. - name: verify API server
  4. command: >
  5. curl --silent --tlsv1.2 --max-time 2
  6. --cacert {{ openshift.common.config_base }}/master/ca-bundle.crt
  7. {{ openshift.master.api_url }}/healthz/ready
  8. args:
  9. # Disables the following warning:
  10. # Consider using get_url or uri module rather than running curl
  11. warn: no
  12. register: l_api_available_output
  13. until: l_api_available_output.stdout == 'ok'
  14. retries: 120
  15. delay: 1
  16. changed_when: false