diff --git a/roles/container-engine/cri-o/tasks/main.yaml b/roles/container-engine/cri-o/tasks/main.yaml index 61bea7af6..887d1cfd1 100644 --- a/roles/container-engine/cri-o/tasks/main.yaml +++ b/roles/container-engine/cri-o/tasks/main.yaml @@ -25,6 +25,20 @@ tags: - facts +- name: disable unified_cgroup_hierarchy in Fedora 31+ + command: grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" + when: + - ansible_distribution == "Fedora" + - (ansible_distribution_major_version | int) >= 31 + - ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0' + +- name: reboot in Fedora 31+ + reboot: + when: + - ansible_distribution == "Fedora" + - (ansible_distribution_major_version | int) >= 31 + - ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0' + - import_tasks: "crio_repo.yml" - import_tasks: "crictl.yml"