/ansible-role-crio

Ansible role to install CRI-O

Primary LanguageJinjaMIT LicenseMIT

Ansible Role: CRI-O

An Ansible Role that installs CRI-O on Linux.

Inspired by @geerlingguy's ansible-role-containerd

Supported OSs

  • Debian 10
  • Ubuntu 18.04
  • Ubuntu 20.04
  • CentOS 7
  • CentOS 8

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

crio_package: cri-o
crio_package_state: present

Package name and state controls.

crio_service_state: started
crio_service_enabled: true

To set the storage driver for CRI-O, set the following variable:

crio_storage_driver: zfs

To change the container runtime, set the following variable (Currently supported runtimes: runc, crun):

crio_runtime: crun

Service controls. You can install CRI-O but not have it running or enabled on boot by changing these defaults.

kubic_apt_ignore_key_error: true

Disable errors from apt-key when installing the repository key

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - rpthms.crio

License

MIT / BSD