Skip to content

Commit

Permalink
Add LSB release checks. This is untested atm.
Browse files Browse the repository at this point in the history
  • Loading branch information
yebo29 committed Feb 27, 2024
1 parent 25d696c commit d325eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/raspberrypi/tasks/setup/Raspbian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
failed_when: false
changed_when: false

- name: Set path to cmdline based on test
- name: Set cmdline path based on Debian version and boot_cmdline_path result
set_fact:
cmdline_path: "{{ (boot_cmdline_path.rc == 0) | ternary('/boot/cmdline.txt', '/boot/firmware/cmdline.txt') }}"
cmdline_path: "{{ (boot_cmdline_path.rc == 0 and ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_version'] is version('bookworm', '<')) | ternary('/boot/cmdline.txt', '/boot/firmware/cmdline.txt') }}"

Check failure on line 10 in roles/raspberrypi/tasks/setup/Raspbian.yml

View workflow job for this annotation

GitHub Actions / lint / Pre-Commit

yaml[line-length]

Line too long (230 > 120 characters)

- name: Activating cgroup support
lineinfile:
Expand Down

0 comments on commit d325eae

Please sign in to comment.