mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-03-12 07:42:11 +01:00
Compare commits
2 Commits
8c6059a020
...
93e1d8d3ab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93e1d8d3ab | ||
|
|
f2bb1e35ae |
@@ -1,6 +1,7 @@
|
||||
---
|
||||
- name: Test for cmdline path
|
||||
command: grep -E "console=|rootfstype" /boot/cmdline.txt
|
||||
stat:
|
||||
path: /boot/firmware/cmdline.txt
|
||||
register: boot_cmdline_path
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
@@ -10,11 +11,11 @@
|
||||
cmdline_path: >-
|
||||
{{
|
||||
(
|
||||
boot_cmdline_path.rc == 0 and
|
||||
boot_cmdline_path.stat.exists and
|
||||
ansible_facts.lsb.description | default('') is match('Debian.*(?!(bookworm|sid))')
|
||||
) | ternary(
|
||||
'/boot/cmdline.txt',
|
||||
'/boot/firmware/cmdline.txt'
|
||||
'/boot/firmware/cmdline.txt',
|
||||
'/boot/cmdline.txt'
|
||||
)
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user