summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-hosted/private/openshift_hosted_wait_for_pods.yml
blob: 1f6868c2a84e468f3015dedab3ada45cd80e2504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
# This playbook waits for registry and router pods after both have been
# created.  It is intended to allow the tasks of deploying both to complete
# before polling to save time.
- name: Poll for hosted pod deployments
  hosts: oo_first_master
  tasks:
  - import_role:
      name: openshift_hosted
      tasks_from: wait_for_pod.yml
    vars:
      l_openshift_hosted_wait_for_pod: "{{ openshift_hosted_router_wait }}"
      l_openshift_hosted_wfp_items: "{{ openshift_hosted_routers }}"
    when:
    - openshift_hosted_manage_router | default(True) | bool
    - openshift_hosted_router_registryurl is defined

  - import_role:
      name: openshift_hosted
      tasks_from: wait_for_pod.yml
    vars:
      l_openshift_hosted_wait_for_pod: "{{ openshift_hosted_registry_wait }}"
      l_openshift_hosted_wfp_items: "{{ r_openshift_hosted_registry_list }}"
    when:
    - openshift_hosted_manage_registry | default(True) | bool
    - openshift_hosted_registry_registryurl is defined