blob: de19558ef72e795f5960a36ec07e47537a69b262 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{{ ansible_managed | comment }}
{% set title = {
'latest': 'Linux (latest)',
'lts': 'Linux (LTS)',
}[flavour] %}
{% set vmlinuz = {
'latest': '/vmlinuz-linux',
'lts': '/vmlinuz-linux-lts',
}[flavour] %}
{% set initrd = {
'latest': '/initramfs-linux.img',
'lts': '/initramfs-linux-lts.img',
}[flavour] %}
title {{ title }}
linux {{ vmlinuz }}
initrd {{ initrd }}
{% set common_options = {'quiet': true} %}
{% set options = common_options | ansible.builtin.combine(ansible_facts['cmdline']) %}
options
{%- for key in options if key != 'initrd' -%}
{%- if options[key] is boolean %}
{{ key }}
{%- else %}
{{ key }}={{ options[key] }}
{%- endif -%}
{%- endfor -%}
|