mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
fix: skip cgroups when cmdline.txt is not present (#320)
Signed-off-by: Jose Luis Pedrosa <jlpedrosa@gmail.com>
This commit is contained in:
committed by
GitHub
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
|
||||||
|
|||||||
Reference in New Issue
Block a user