Browse Source

Add missing ClusterRole for OLM

Evan Cordell 6 years ago
parent
commit
35322c737e
1 changed files with 9 additions and 0 deletions
  1. 9 0
      roles/olm/tasks/install.yaml

+ 9 - 0
roles/olm/tasks/install.yaml

@@ -41,6 +41,15 @@
     files:
       - "{{ mktemp.stdout }}/olm-operator.serviceaccount.yaml"
 
+- name: Apply operator-lifecycle-manager ClusterRole manifest
+  oc_obj:
+    state: present
+    kind: ClusterRole
+    name: system:controller:operator-lifecycle-manager
+    namespace: operator-lifecycle-manager
+    files:
+      - "{{ mktemp.stdout }}/olm-operator.clusterrole.yaml"
+
 - name: Apply olm-operator-binding-operator-lifecycle-manager ClusterRoleBinding manifest
   oc_obj:
     state: present