From d325eae726e15634b1bc7eb5dee2611d7b6ec851 Mon Sep 17 00:00:00 2001 From: Daniel San Pedro Date: Mon, 26 Feb 2024 23:39:07 -0500 Subject: [PATCH] Add LSB release checks. This is untested atm. --- roles/raspberrypi/tasks/setup/Raspbian.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/raspberrypi/tasks/setup/Raspbian.yml b/roles/raspberrypi/tasks/setup/Raspbian.yml index 8860d85..2778186 100644 --- a/roles/raspberrypi/tasks/setup/Raspbian.yml +++ b/roles/raspberrypi/tasks/setup/Raspbian.yml @@ -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') }}" - name: Activating cgroup support lineinfile: