--- - name: Append cgroupsv1 boot option ansible.builtin.lineinfile: path: /etc/default/grub regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT)="(.*)"$' line: '\1="\2 SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0"' backrefs: true notify: - GRUB mkconfig - Reboot - name: Flush handlers ansible.builtin.meta: flush_handlers