mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-06-23 10:04:44 +02:00
15 lines
591 B
YAML
15 lines
591 B
YAML
---
|
|
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
|
|
lineinfile:
|
|
path: /boot/boot.txt
|
|
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
|
|
line: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
|
|
register: kernel_cmdline_cgroup
|
|
|
|
- name: Create
|
|
shell: ./mkscr
|
|
args:
|
|
chdir: /boot
|
|
notify: reboot
|
|
when: kernel_cmdline_cgroup.changed
|