Compare commits

1 Commits

Author SHA1 Message Date
Daniel SP 8c6059a020 Merge cd38ba51e3 into 3b74985767 2024-02-27 20:26:06 +00:00
+4 -5
View File
@@ -1,7 +1,6 @@
---
- name: Test for cmdline path
stat:
path: /boot/firmware/cmdline.txt
command: grep -E "console=|rootfstype" /boot/cmdline.txt
register: boot_cmdline_path
failed_when: false
changed_when: false
@@ -11,11 +10,11 @@
cmdline_path: >-
{{
(
boot_cmdline_path.stat.exists and
boot_cmdline_path.rc == 0 and
ansible_facts.lsb.description | default('') is match('Debian.*(?!(bookworm|sid))')
) | ternary(
'/boot/firmware/cmdline.txt',
'/boot/cmdline.txt'
'/boot/cmdline.txt',
'/boot/firmware/cmdline.txt'
)
}}