diff --git a/roles/mig_controller_prereqs/tasks/deploy_operator.yml b/roles/mig_controller_prereqs/tasks/deploy_operator.yml index 234993fa..8856ebc6 100644 --- a/roles/mig_controller_prereqs/tasks/deploy_operator.yml +++ b/roles/mig_controller_prereqs/tasks/deploy_operator.yml @@ -18,9 +18,18 @@ block: - name: "Create OperatorSource" - k8s: - state: present - definition: "{{ lookup('file', '{{ mig_operator_location }}/mig-operator-source.yaml' )}}" + command: "oc create -n openshift-marketplace -f {{ mig_operator_location }}/mig-operator-source.yaml" +######### +# ## Failed to find exact match for operators.coreos.com/v1.OperatorSource by [kind, name, singularName, shortNames] +# ## https://github.com/ansible/ansible/issues/55221 +# ## https://github.com/openshift/origin/issues/21668 +# ## https://github.com/ansible/ansible/issues/58130 +# ## https://github.com/ansible/ansible/issues/49100 +# k8s: +# state: present +# definition: "{{ lookup('file', '{{ mig_operator_location }}/mig-operator-source.yaml' )}}" +# ## +######### - name: "Wait for OLM to reconcile OperatorSource creation" k8s_facts: