2020-08-16 20:38:12 +02:00
|
|
|
---
|
2023-12-04 18:46:45 +01:00
|
|
|
- name: Enable cgroup via boot commandline if not already enabled
|
2023-11-07 22:35:08 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2020-08-16 20:38:12 +02:00
|
|
|
path: /boot/cmdline.txt
|
2023-12-04 18:46:45 +01:00
|
|
|
backrefs: true
|
2020-08-16 20:38:12 +02:00
|
|
|
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
|
|
|
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
2023-11-09 22:56:22 +01:00
|
|
|
notify: Reboot Pi
|