mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-09-25 03:32:52 +02:00
support for CentOS on the Raspberry Pi added
This commit is contained in:
parent
98473e2b09
commit
d2b420588e
8
roles/raspberrypi/tasks/prereq/CentOS.yml
Normal file
8
roles/raspberrypi/tasks/prereq/CentOS.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled for Centos
|
||||
lineinfile:
|
||||
path: /boot/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
|
Loading…
Reference in New Issue
Block a user