Files
k3s-ansible/roles/raspberrypi/tasks/prereq/Ubuntu.yml
Staf Wagemakers a5782b1d61 * updated description
* use handler for the reboot
* removed ARM cpu detection
2020-08-16 10:11:15 +02:00

9 lines
346 B
YAML

---
- name: Enable cgroup via boot commandline if not already enabled for Ubuntu on a Raspberry Pi
lineinfile:
path: /boot/firmware/cmdline.txt
backrefs: yes
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
notify: reboot