Files
k3s-ansible/roles/raspberrypi/tasks/setup/Rocky.yml
Richard Holmboe 48f5096a1a Change to FQCN with ansible-lint fixer
Since ansible-base 2.10 (later ansible-core), FQCN is the new way to go.

Updated .ansible-lint with a production profile and removed fqcn in skip_list.
Updated .yamllint with rules needed.

Ran ansible-lint --fix=all, then manually applied some minor changes.
2024-08-02 09:18:06 +02:00

10 lines
362 B
YAML

---
- name: Enable cgroup via boot commandline if not already enabled for Rocky
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
when: not ansible_check_mode