Browse Source

crio: ensure no default CNI configuration files are left

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 7 years ago
parent
commit
209c2fa22d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      roles/docker/tasks/systemcontainer_crio.yml

+ 8 - 0
roles/docker/tasks/systemcontainer_crio.yml

@@ -134,6 +134,14 @@
     image: "{{ l_crio_image }}"
     state: latest
 
+- name: Remove CRI-o default configuration files
+  file:
+    path: "{{ item }}"
+    state: absent
+  with_items:
+    - /etc/cni/net.d/200-loopback.conf
+    - /etc/cni/net.d/100-crio-bridge.conf
+
 - name: Create the CRI-O configuration
   template:
     dest: /etc/crio/crio.conf