Browse Source

Add required dirs for crio 1.14.4

Russell Teague 5 years ago
parent
commit
2b34926f4a
1 changed files with 13 additions and 0 deletions
  1. 13 0
      roles/openshift_node/tasks/install.yml

+ 13 - 0
roles/openshift_node/tasks/install.yml

@@ -6,6 +6,19 @@
   async: 3600
   poll: 30
 
+# FIXME: Creation of these directories should not be required for crio 1.14.5
+- name: Create CNI dirs for crio
+  file:
+    path: "{{ item }}"
+    state: directory
+    owner: root
+    group: root
+    mode: 0755
+  loop:
+    - /var/lib/cni/bin
+    - /etc/kubernetes/cni/net.d/
+    - /opt/cni/bin/
+
 - name: Install openshift packages
   package:
     name: "{{ openshift_node_packages | join(',') }}"