cri-o-ansible icon indicating copy to clipboard operation
cri-o-ansible copied to clipboard

Attempting to do this on Fedora 26 caused issues if I had kubernetes/runc/cri-o installed.

Open rhatdan opened this issue 6 years ago • 1 comments

We probably need to expand this to work with distro packages. Installing of the kubernets packages at the end were causing me issues also.

Here is the diff that I used to make it work on fedora 26

diff --git a/cri-o.yml b/cri-o.yml
index ab681b9..b9e707d 100644
--- a/cri-o.yml
+++ b/cri-o.yml
@@ -33,6 +33,9 @@
         - skopeo-containers
         - tar
         - wget
+        - runc
+        - cri-o
+        - kubernetes
       when: ansible_distribution == 'Fedora'
 
     - name: Make sure we have all required packages on RHEL/CentOS
@@ -125,7 +128,7 @@
               make install
 
     - name: link runc
-      file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link
+      file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link force=true
 
     - name: build cri-o
       shell: |
@@ -135,6 +138,7 @@
               make install && \
               make install.systemd && \
               make install.config
+      when: ansible_distribution != 'Fedora'
 
     - name: install policy.json in Ubuntu
       shell: |
diff --git a/install/kubernetes.yml b/install/kubernetes.yml
index e9f886a..cec7e56 100644
--- a/install/kubernetes.yml
+++ b/install/kubernetes.yml
@@ -30,3 +30,4 @@
     - kubeadm
     - kubectl
     - kubernetes-cni
+  when: ansible_distribution != "Fedora"

rhatdan avatar Jul 25 '17 21:07 rhatdan