Have backrefs: follow path:;

Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
This commit is contained in:
Jon S. Stumpf 2023-12-02 21:45:16 -05:00
parent 7420fdc851
commit f4c7f6ebdd
2 changed files with 2 additions and 2 deletions

View File

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

View File

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