911fe88a9f
Fix ensure-kubernetes role for focal As focal doesn't exist for project atomic ppa [1] Install is performed from opensuse repository only As cri-o package 1.15 for ubuntu focal doesn't exist, update to 1.16 [1] http://ppa.launchpad.net/projectatomic/ppa/ubuntu/dists/ [2] https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/ Change-Id: I7f02b7337a5f51a86be1a2332f2305b0ae722934
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
- name: Add all repositories
|
|
include_role:
|
|
name: ensure-package-repositories
|
|
vars:
|
|
repositories_keys:
|
|
- url: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_{{ ansible_distribution_version }}/Release.key"
|
|
- url: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.16/xUbuntu_{{ ansible_distribution_version }}/Release.key"
|
|
repositories_list:
|
|
- repo: "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_{{ ansible_distribution_version }}/ /"
|
|
- repo: "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.16/xUbuntu_{{ ansible_distribution_version }}/ /"
|
|
- name: Install packages
|
|
package:
|
|
name:
|
|
- cri-o-1.16
|
|
- containernetworking-plugins
|
|
- podman
|
|
- cri-tools
|
|
state: present
|
|
become: true
|
|
- name: Set crio cgroup driver
|
|
ini_file:
|
|
path: /etc/crio/crio.conf
|
|
section: crio.runtime
|
|
option: cgroup_manager
|
|
value: '"cgroupfs"'
|
|
mode: 0644
|
|
become: true
|