Files
k3s-ansible/roles/raspberrypi/tasks/prereq/Archlinux.yml
Derek Nola 9ecdc933ca Add Vagrantfile for local testing
Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-11-08 13:42:11 -08:00

16 lines
667 B
YAML

---
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
ansible.builtin.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
ansible.builtin.command: ./mkscr
args:
chdir: /boot
notify: reboot
changed_when: false
when: kernel_cmdline_cgroup.changed # noqa: no-handler