fix: skip cgroups when cmdline.txt is not present (#320)

Signed-off-by: Jose Luis Pedrosa <jlpedrosa@gmail.com>
This commit is contained in:
Jose Luis Pedrosa
2024-04-01 19:08:05 +01:00
committed by GitHub
parent c84c1ce5b1
commit 91405dc517

View File

@@ -1,6 +1,6 @@
--- ---
- name: Enable cgroup via boot commandline if not already enabled - name: Enable cgroup via boot commandline if not already enabled
when: lookup('fileglob', '/boot/firmware/cmdline.txt', errors='warn') | length == 0 when: lookup('fileglob', '/boot/firmware/cmdline.txt', errors='warn') | length > 0
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /boot/firmware/cmdline.txt path: /boot/firmware/cmdline.txt
backrefs: true backrefs: true