Wrong Ansible module
The wrong module is used to update cgroup kernel parameters for some distributions. Signed-off-by: Marko Vukovic <8951449+anon-software@users.noreply.github.com>pull/352/head
parent
5c8cb119b6
commit
efee4c86b2
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
ansible.builtin.replace:
|
||||
path: /boot/cmdline.txt
|
||||
regexp: '^([\w](?!.*\b{{ cgroup_item }}\b).*)$'
|
||||
replace: '\1 {{ cgroup_item }}'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
ansible.builtin.replace:
|
||||
path: /boot/cmdline.txt
|
||||
regexp: '^([\w](?!.*\b{{ cgroup_item }}\b).*)$'
|
||||
replace: '\1 {{ cgroup_item }}'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
when: lookup('fileglob', '/boot/firmware/cmdline.txt', errors='warn') | length > 0
|
||||
ansible.builtin.lineinfile:
|
||||
ansible.builtin.replace:
|
||||
path: /boot/firmware/cmdline.txt
|
||||
regexp: '^([\w](?!.*\b{{ cgroup_item }}\b).*)$'
|
||||
replace: '\1 {{ cgroup_item }}'
|
||||
|
|
Loading…
Reference in New Issue