diff options
-rw-r--r-- | common/usb-install.yml | 4 | ||||
-rw-r--r-- | inventory/host_vars/ele-thetys.yml | 2 | ||||
-rw-r--r-- | roles/base/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/base/tasks/main.yml | 8 |
4 files changed, 15 insertions, 2 deletions
diff --git a/common/usb-install.yml b/common/usb-install.yml index 386bd7c4..143cacaa 100644 --- a/common/usb-install.yml +++ b/common/usb-install.yml @@ -50,7 +50,7 @@ LABEL linux KERNEL linux INITRD initrd.preseed.gz - APPEND auto=true priority=critical DEBCONF_DEBUG=5 + APPEND install {{ (install.kernel_cmdline | default([])) | join(' ') }} - name: create EFI boot directory file: @@ -66,7 +66,7 @@ LABEL linux KERNEL ../../linux INITRD ../../initrd.preseed.gz - APPEND auto=true priority=critical DEBCONF_DEBUG=5 + APPEND install {{ (install.kernel_cmdline | default([])) | join(' ') }} - name: Make the USB disk bootable pause: diff --git a/inventory/host_vars/ele-thetys.yml b/inventory/host_vars/ele-thetys.yml index f2e6d4be..533e2f04 100644 --- a/inventory/host_vars/ele-thetys.yml +++ b/inventory/host_vars/ele-thetys.yml @@ -3,6 +3,8 @@ install: efi: true disks: primary: "/dev/disk/by-id/ata-TS32GMSA370_B475040161" + kernel_cmdline: + - "consoleblank=0" network: nameservers: "{{ network_zones.lan.dns }}" diff --git a/roles/base/handlers/main.yml b/roles/base/handlers/main.yml new file mode 100644 index 00000000..a23868cf --- /dev/null +++ b/roles/base/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: update grub + command: update-grub diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 767fd7fa..d9777ed1 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -88,3 +88,11 @@ apt: name: "{{ base_packages_extra_host | union(base_packages_extra_group) }}" state: present + +- name: set kernel command line options + lineinfile: + path: /etc/default/grub + regexp: '^#?GRUB_CMDLINE_LINUX=' + line: 'GRUB_CMDLINE_LINUX="{{ install.kernel_cmdline | join(" ") }}"' + when: install is defined and install.kernel_cmdline is defined + notify: update grub |