Add fix for cAdvisor memory problem

This commit is contained in:
Thomas Kleinendorst 2025-01-15 20:59:18 +01:00
parent da955f79f5
commit 797765e890

View file

@ -1,4 +1,13 @@
--- ---
# See: https://github.com/google/cadvisor/issues/3469#issuecomment-2005749081
# Also seems to require a reboot...
- name: Append cgroup variables to RaspberryPi file
become: true
ansible.builtin.lineinfile:
path: /boot/firmware/cmdline.txt
backrefs: true
regexp: "^(.*rootwait)$" # Just the default value in the file at the end, hopefully this works on fresh installs as well...
line: '\1 cgroup_memory=1 cgroup_enable=memory'
- name: Install the container - name: Install the container
become: true become: true
community.docker.docker_container: community.docker.docker_container: