Role tweaks (#268)

* 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>
This commit is contained in:
Jon S. Stumpf
2023-12-04 12:46:45 -05:00
committed by GitHub
parent b4237ef24d
commit 4d6e60281e
9 changed files with 29 additions and 24 deletions

View File

@@ -1,15 +1,9 @@
---
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
- name: Enable cgroup via boot commandline if not already enabled
ansible.builtin.lineinfile:
path: /boot/boot.txt
# yamllint disable-line rule:line-length
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
# yamllint disable-line rule:line-length
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 Pi
changed_when: false
when: kernel_cmdline_cgroup.changed # noqa: no-handler
notify: Regenerate bootloader image