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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
---
- 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:
path: /boot/firmware/cmdline.txt
backrefs: true