mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
9 lines
338 B
YAML
9 lines
338 B
YAML
---
|
|
- name: Enable cgroup via boot commandline if not already enabled for Centos
|
|
ansible.builtin.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 Pi
|