From bb082e3021885313a61ae1322ba4d9d3bc3c1898 Mon Sep 17 00:00:00 2001 From: Calin Cristian Andrei Date: Tue, 30 Nov 2021 09:26:48 +0000 Subject: [PATCH] cri-o: use cgroupsv2 where available (fedora) --- roles/container-engine/cri-o/tasks/main.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/roles/container-engine/cri-o/tasks/main.yaml b/roles/container-engine/cri-o/tasks/main.yaml index d3997f4a5ff..45e60ef747f 100644 --- a/roles/container-engine/cri-o/tasks/main.yaml +++ b/roles/container-engine/cri-o/tasks/main.yaml @@ -35,22 +35,6 @@ 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' - - not is_ostree - -- 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' - - not is_ostree - - name: import crio repo import_tasks: "crio_repo.yml" when: crio_add_repos