13 lines
375 B
YAML
13 lines
375 B
YAML
# code: language=ansible
|
|
|
|
- name: Check if cgroup v2 is available
|
|
ansible.builtin.command: grep cgroup2 /proc/filesystems
|
|
register: cgroup2_present
|
|
changed_when: cgroup2_present.rc != 0
|
|
|
|
- name: Enable cgroup v2
|
|
ansible.builtin.command: 'grubby --update-kernel=ALL --add-args="systemd.unified_cgroup_hierarchy=1"'
|
|
become: true
|
|
when:
|
|
- cgroup2_present.rc != 0
|