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
Marko Vukovic 2024-08-07 09:39:48 -07:00
parent 5c8cb119b6
commit efee4c86b2
3 changed files with 3 additions and 3 deletions

View File

@ -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 }}'

View File

@ -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 }}'

View File

@ -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 }}'