Files
cms/roles/setup_cgroupsv1/tasks/systemd-boot.yml
ytshih c014a0b76e
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 14s
Fix: aws
2024-12-20 22:34:05 +08:00

14 lines
462 B
YAML

---
- 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