Files
ansible-k8s-pi-cluster/install_crio.yml

35 lines
1.0 KiB
YAML

- name: Add keyring of CRI-O repo
apt_key:
url: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o/Debian_11/Release.key
state: present
- name: Add keyring of CRI-O repo
apt_key:
url: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.22/Debian_11/Release.key
state: present
- name: Add CRI-O Repo
apt_repository:
repo: "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_11/ /"
state: present
filename: "devel:kubic:libcontainers:stable.list"
- name: Add CRI-O Repo
apt_repository:
repo: "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.22/Debian_11/ /"
state: present
filename: "devel:kubic:libcontainers:stable:cri-o:Debian_11.list"
- name: Install CRI-O
apt:
name: "{{ item }}"
update_cache: true
loop:
- cri-o
- cri-o-runc
- name: Enable CRI-O Service
systemd:
name: crio
state: started
enabled: true