Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cri-o.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,15 @@
name: /etc/crio/crio.conf
backup: yes
when: ansible_distribution in ['Fedora', 'RedHat', 'CentOS']
notify: restart crio

- name: run with overlay2
replace:
regexp: 'storage_driver = ""'
replace: 'storage_driver = "overlay2"'
name: /etc/crio/crio.conf
backup: yes
notify: restart crio

- name: add overlay2 storage opts on RHEL/CentOS
lineinfile:
Expand All @@ -170,6 +172,7 @@
regexp: 'overlay2\.override_kernel_check=1'
state: present
when: ansible_distribution in ['RedHat', 'CentOS']
notify: restart crio

- name: enable and start CRI-O
systemd:
Expand Down Expand Up @@ -213,3 +216,10 @@
- name: disable selinux
command: "setenforce 0"
when: ansible_distribution in ['Fedora', 'RedHat', 'CentOS']

handlers:
- name: restart crio
systemd:
name: crio
state: restarted
daemon_reload: yes