- name: ensure cri-o is installed package: name: - container-selinux - cri-o - crun state: present tags: - install - name: ensure crio configuration drop-in directory exists file: path: /etc/crio/crio.conf.d owner: root group: root mode: u=rwx,go=rx state: directory tags: - config - name: ensure cri-o is configured to use crun copy: src: crun.conf dest: /etc/crio/crio.conf.d/10-crio-crun.conf owner: root group: root mode: u=rw,go=r notify: - restart crio tags: - config - name: flush handlers meta: flush_handlers - name: ensure cri-o service is enabled service: name: crio enabled: true tags: - service - name: ensure cri-o service is running service: name: crio state: started tags: - service