openshift_hosted_wait_for_pods.yml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. ---
  2. # This playbook waits for registry and router pods after both have been
  3. # created. It is intended to allow the tasks of deploying both to complete
  4. # before polling to save time.
  5. - name: Poll for hosted pod deployments
  6. hosts: oo_first_master
  7. tasks:
  8. # Need to set_fact variable for registry.
  9. - import_role:
  10. name: openshift_hosted
  11. tasks_from: set_fact_workaround.yml
  12. - import_role:
  13. name: openshift_hosted
  14. tasks_from: wait_for_pod.yml
  15. vars:
  16. l_openshift_hosted_wait_for_pod: "{{ openshift_hosted_router_wait }}"
  17. l_openshift_hosted_wfp_items: "{{ openshift_hosted_routers }}"
  18. when:
  19. - openshift_hosted_manage_router | default(True) | bool
  20. - openshift_hosted_router_registryurl is defined
  21. - import_role:
  22. name: openshift_hosted
  23. tasks_from: wait_for_pod.yml
  24. vars:
  25. l_openshift_hosted_wait_for_pod: "{{ openshift_hosted_registry_wait }}"
  26. l_openshift_hosted_wfp_items: "{{ r_openshift_hosted_registry_list }}"
  27. when:
  28. - openshift_hosted_manage_registry | default(True) | bool
  29. - openshift_hosted_registry_registryurl is defined