300ee42863
This reverts commit c4a6669912
.
The change was originally reverted because it broke testing on Jammy.
Jammy broke because it was attempting to install cri-o using the Bionic
method via a PPA. This is no longer valid for newer Ubuntu, and Focal
uses a different process too. We update the cri-o installation for Jammy
to match Focal and make this method the default so that new Ubuntu
releases default to modern installation methods. Bionic continues to
install from a PPA.
Additionally we bump the cri-o version from 1.15 to 1.24 to get a
version that has packages for both Focal and Jammy. This new version
requires we also install cri-o-runc separately as they don't seem to
have proper package dependencies in place between these two packages.
The crio systemd service fails to start without cri-o-runc installed.
Change-Id: Ic29576e26be094744cc1b169a3c8f0bca814f089
43 lines
938 B
YAML
43 lines
938 B
YAML
- name: Add project atomic PPA
|
|
apt_repository:
|
|
repo: ppa:projectatomic/ppa
|
|
become: true
|
|
- name: Install packages
|
|
package:
|
|
name:
|
|
- cri-o-1.15
|
|
- containernetworking-plugins
|
|
- podman
|
|
- cri-tools
|
|
state: present
|
|
become: true
|
|
- name: Fix conmon symlink
|
|
file:
|
|
src: /usr/bin/conmon
|
|
dest: /usr/libexec/crio/conmon
|
|
owner: root
|
|
group: root
|
|
state: link
|
|
become: true
|
|
- name: Fix missing registries.conf
|
|
# See: https://github.com/containers/podman.io/issues/127
|
|
copy:
|
|
content: |
|
|
[registries.search]
|
|
registries = []
|
|
[registries.insecure]
|
|
registries = []
|
|
[registries.block]
|
|
registries = []
|
|
dest: /etc/containers/registries.conf
|
|
mode: 0644
|
|
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
|