fix: skip cgroups when cmdline.txt is not present (#320)
Signed-off-by: Jose Luis Pedrosa <jlpedrosa@gmail.com>
This commit is contained in:
parent
c84c1ce5b1
commit
91405dc517
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue