diff --git a/tests/roles/set_cgroups/tasks/main.yml b/tests/roles/set_cgroups/tasks/main.yml index 133d7fe..a900673 100644 --- a/tests/roles/set_cgroups/tasks/main.yml +++ b/tests/roles/set_cgroups/tasks/main.yml @@ -27,12 +27,10 @@ - name: remove cgroup option from kernel flags shell: cmd: sed -i -e "s/^\(kernelopts=.*\)systemd\.unified_cgroup_hierarchy=.\(.*\)/\1 \2/" /boot/grub2/grubenv - warn: false - name: add it with the desired value shell: cmd: sed -i -e "s/^\(kernelopts=.*\)/\1 systemd.unified_cgroup_hierarchy=0/" /boot/grub2/grubenv - warn: false when: want_cgroups == 1 - name: grubenv, post-edit, cat