--- # Copyright Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - name: Install cluster observability operator. kubernetes.core.k8s: definition: "{{cifmw_openshift_obs_definition }}" kubeconfig: "{{ cifmw_openshift_kubeconfig }}" state: present - name: Wait for observability operator deployment kubernetes.core.k8s_info: kind: Deployment namespace: openshift-operators name: observability-operator wait: true wait_timeout: 300 wait_condition: type: Available status: "True" kubeconfig: "{{ cifmw_openshift_kubeconfig }}" retries: 3 delay: 60 register: _openshift_obs_deployment until: _openshift_obs_deployment is success - name: Wait for observability-operator pod kubernetes.core.k8s_info: kind: Pod namespace: openshift-operators label_selectors: - app.kubernetes.io/name = observability-operator wait: true wait_timeout: 300 wait_condition: type: Ready status: "True" kubeconfig: "{{ cifmw_openshift_kubeconfig }}" retries: 3 delay: 60 register: _openshift_obs_pods until: _openshift_obs_pods is success