Add LSB release checks. This is untested atm.

This commit is contained in:
Daniel San Pedro
2024-02-26 23:39:07 -05:00
parent 25d696c762
commit d325eae726

View File

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