--- - name: Setup boot entry facts ansible.builtin.set_fact: bootconf: "{{ setup_cgroupsv1_bootconf | default('/boot/loader/entries/arch.conf') }}" - name: Append cgroupsv1 boot option ansible.builtin.lineinfile: path: "{{ bootconf }}" regexp: '^(options.*rw)' line: '\1 SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 systemd.unified_cgroup_hierarchy=0' backrefs: true notify: Reboot - name: Flush handlers ansible.builtin.meta: flush_handlers