Use cgroup v1 in Fedora +31 (#6862)
Fedora 31 uses Cgroups v2 by default. This change by passes the kernel parameter systemd.unified_cgroup_hierarchy=0. Signed-off-by: Victor Morales <v.morales@samsung.com>
This commit is contained in:
parent
7a1f033c1d
commit
9cf5dd0291
1 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue