Initial commit
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
This commit is contained in:
13
roles/setup_cgroupsv1/tasks/main.yml
Normal file
13
roles/setup_cgroupsv1/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user