2020-05-22 18:01:03 +02:00
|
|
|
---
|
2023-12-04 18:46:45 +01:00
|
|
|
- name: Enable cgroup via boot commandline if not already enabled
|
2023-11-07 22:35:08 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2020-05-22 18:01:03 +02:00
|
|
|
path: /boot/firmware/cmdline.txt
|
2023-12-04 18:46:45 +01:00
|
|
|
backrefs: true
|
2020-05-23 18:31:40 +02:00
|
|
|
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
2020-05-22 18:01:03 +02:00
|
|
|
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
2023-11-09 22:56:22 +01:00
|
|
|
notify: Reboot Pi
|
2023-12-04 18:46:45 +01:00
|
|
|
|
2023-11-07 18:55:02 +01:00
|
|
|
- name: Install Ubuntu Raspi Extra Packages
|
2023-11-07 22:35:08 +01:00
|
|
|
ansible.builtin.apt:
|
|
|
|
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
|
|
|
|
# See: https://github.com/k3s-io/k3s/issues/4234
|
|
|
|
name: linux-modules-extra-raspi
|
2023-12-04 18:46:45 +01:00
|
|
|
update_cache: true
|
2023-11-07 18:55:02 +01:00
|
|
|
state: present
|
2023-11-07 22:35:08 +01:00
|
|
|
when: "ansible_distribution_version is version('20.10', '>=')"
|