|
91 | 91 | src: "{{ cifmw_kustomize_deploy_olm_dest_file }}" |
92 | 92 | register: _cifmw_kustomize_deploy_olm_apply_out |
93 | 93 |
|
94 | | - - name: Wait for the openstack operators InstallPlan to be created |
| 94 | + - name: Wait for the openstack operators Subscription to be created |
95 | 95 | vars: |
96 | | - _cifmw_kustomize_deploy_olm_osp_operator_sub: >- |
| 96 | + _cifmw_kustomize_deploy_olm_osp_operator_subscription: >- |
97 | 97 | {{ |
98 | 98 | ( |
99 | 99 | _cifmw_kustomize_deploy_olm_apply_out.result.results | |
|
108 | 108 | kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
109 | 109 | api_key: "{{ cifmw_openshift_token | default(omit) }}" |
110 | 110 | context: "{{ cifmw_openshift_context | default(omit) }}" |
111 | | - api_version: "{{ _cifmw_kustomize_deploy_olm_osp_operator_sub.apiVersion }}" |
| 111 | + api_version: "{{ _cifmw_kustomize_deploy_olm_osp_operator_subscription.apiVersion }}" |
112 | 112 | kind: Subscription |
113 | | - namespace: "{{ _cifmw_kustomize_deploy_olm_osp_operator_sub.metadata.namespace }}" |
114 | | - name: "{{ _cifmw_kustomize_deploy_olm_osp_operator_sub.metadata.name }}" |
115 | | - register: _cifmw_kustomize_deploy_olm_osp_operator_sub_out |
116 | | - retries: "{{ cifmw_kustomize_deploy_retries_install_plan }}" |
| 113 | + namespace: "{{ _cifmw_kustomize_deploy_olm_osp_operator_subscription.metadata.namespace }}" |
| 114 | + name: "{{ _cifmw_kustomize_deploy_olm_osp_operator_subscription.metadata.name }}" |
| 115 | + register: _cifmw_kustomize_deploy_olm_osp_operator_subscription_out |
| 116 | + retries: "{{ cifmw_kustomize_deploy_retries_subscription }}" |
117 | 117 | delay: "{{ cifmw_kustomize_deploy_delay }}" |
118 | 118 | until: |
119 | | - - _cifmw_kustomize_deploy_olm_osp_operator_sub_out.failed is false |
120 | | - - _cifmw_kustomize_deploy_olm_osp_operator_sub_out.resources is defined |
121 | | - - _cifmw_kustomize_deploy_olm_osp_operator_sub_out.resources | length == 1 |
122 | | - - (_cifmw_kustomize_deploy_olm_osp_operator_sub_out.resources | first)['status']['installPlanRef'] is defined |
| 119 | + - _cifmw_kustomize_deploy_olm_osp_operator_subscription_out.failed is false |
| 120 | + - _cifmw_kustomize_deploy_olm_osp_operator_subscription_out.resources is defined |
| 121 | + - _cifmw_kustomize_deploy_olm_osp_operator_subscription_out.resources | length == 1 |
| 122 | + - (_cifmw_kustomize_deploy_olm_osp_operator_subscription_out.resources | first)['status']['installPlanRef'] is defined |
123 | 123 |
|
124 | 124 | - name: Install plan |
125 | 125 | ansible.builtin.include_tasks: install_plan.yml |
|
131 | 131 | vars: |
132 | 132 | _install_plan: >- |
133 | 133 | {{ |
134 | | - (_cifmw_kustomize_deploy_olm_osp_operator_sub_out.resources | first).status.installPlanRef |
| 134 | + (_cifmw_kustomize_deploy_olm_osp_operator_subscription_out.resources | first).status.installPlanRef |
135 | 135 | }} |
136 | 136 | kubernetes.core.k8s_info: |
137 | 137 | kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
|
0 commit comments