Skip to content

Commit

Permalink
fix: skip cgroups when cmdline.txt is not present (#320)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Pedrosa <[email protected]>
  • Loading branch information
jlpedrosa authored Apr 1, 2024
1 parent c84c1ce commit 91405dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Ubuntu.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 91405dc

Please sign in to comment.