mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 03:37:36 +03:00
Ubuntu crio repo (#5994)
* declare kubic repo for ubuntu * do not install crictl twice * move fedora repo modular tasks to crio_repo file * move centos repo tasks to crio_repo * declare crio version matrix for ubuntu * update documentation crio support for ubuntu
This commit is contained in:
34
roles/container-engine/cri-o/tasks/crio_repo.yml
Normal file
34
roles/container-engine/cri-o/tasks/crio_repo.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
|
||||
- name: Add CRI-O kubic repo key
|
||||
apt_key:
|
||||
url: "https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x{{ ansible_distribution }}_{{ ansible_distribution_version }}/Release.key"
|
||||
state: present
|
||||
when: ansible_distribution in ["Ubuntu"]
|
||||
|
||||
- name: Add CRI-O kubic repo
|
||||
apt_repository:
|
||||
repo: "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x{{ ansible_distribution }}_{{ ansible_distribution_version }}/ /"
|
||||
state: present
|
||||
filename: devel:kubic:libcontainers:stable
|
||||
when: ansible_distribution in ["Ubuntu"]
|
||||
|
||||
- name: Add CRI-O OpenShift Origin repository
|
||||
yum_repository:
|
||||
name: origin
|
||||
description: OpenShift Origin Repo
|
||||
baseurl: "{{ crio_rhel_repo_base_url }}"
|
||||
gpgcheck: no
|
||||
when: ansible_distribution in ["CentOS","RedHat","OracleLinux"] and not is_ostree
|
||||
|
||||
- name: Enable modular repos for crio
|
||||
ini_file:
|
||||
path: "/etc/yum.repos.d/{{ item }}.repo"
|
||||
section: "{{ item }}"
|
||||
option: enabled
|
||||
value: 1
|
||||
become: true
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
loop:
|
||||
- "fedora-updates-modular"
|
||||
- "fedora-modular"
|
||||
Reference in New Issue
Block a user