Skip to content

Commit

Permalink
Have backrefs: follow path:;
Browse files Browse the repository at this point in the history
Signed-off-by: Jon S. Stumpf <[email protected]>
  • Loading branch information
jon-stumpf committed Dec 3, 2023
1 parent 7420fdc commit f4c7f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/raspberrypi/tasks/prereq/Raspbian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4c7f6e

Please sign in to comment.