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