mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-10-31 08:09:36 +01:00
4d6e60281e
* Limited boolean values to true/false; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> * Moved ArchLinux prereq task to be a handler; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> * Standardized task name for adding cgroup support; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> * Have backrefs: follow path:; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> * Addressed ansible-lint errors; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> * Fixed #264, task 7: Copy K3s service file; Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com> --------- Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
9 lines
328 B
YAML
9 lines
328 B
YAML
---
|
|
- name: Enable cgroup via boot commandline if not already enabled
|
|
ansible.builtin.lineinfile:
|
|
path: /boot/cmdline.txt
|
|
backrefs: true
|
|
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
|