Have backrefs: follow path:;
Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
This commit is contained in:
parent
7420fdc851
commit
f4c7f6ebdd
|
@ -7,9 +7,9 @@
|
|||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ (boot_firmware_cmdline_txt.stat.exists) | ternary('/boot/firmware/cmdline.txt', '/boot/cmdline.txt') }}"
|
||||
backrefs: true
|
||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||
backrefs: true
|
||||
notify: Reboot Pi
|
||||
|
||||
- name: Gather the package facts
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/cmdline.txt
|
||||
backrefs: true
|
||||
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
|
||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||
backrefs: true
|
||||
notify: Reboot Pi
|
||||
|
||||
- name: Gather the package facts
|
||||
|
|
Loading…
Reference in New Issue