From 2bc212f3fe47705c1d5806936fabcd9480e1e014 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 23 Nov 2026 09:42:01 -0700 Subject: [PATCH] docs(changelog): version 2.3.0 [citest_skip] Update changelog and .README.html for version 2.3.0 Signed-off-by: Rich Megginson --- .README.html | 484 +++++++++++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 35 ++++ 2 files changed, 519 insertions(+) create mode 100644 .README.html diff --git a/.README.html b/.README.html new file mode 100644 index 00000000..89016928 --- /dev/null +++ b/.README.html @@ -0,0 +1,484 @@ + + + + + + + + bootloader + + + + + + +
+
+

bootloader

+
+
+ +
+

An Ansible role for bootloader and kernel command line +management.

+

Supported architectures

+

This role currently supports configuring grub2 boot +loader which runs on the following architectures:

+
    +
  • AMD and Intel 64-bit architectures (x86-64)
  • +
  • The 64-bit ARM architecture (ARMv8.0)
  • +
  • IBM Power Systems, Little Endian (POWER9)
  • +
+

Requirements

+

See below

+

Collection requirements

+

If you don't want to manage ostree or SUSE systems, the +role has no requirements.

+

If you want to manage ostree or SUSE systems, the role +requires additional modules from external collections, such as +community.general for zypper on SUSE. Please +use the following command to install them:

+
ansible-galaxy collection install -vv -r meta/collection-requirements.yml
+

Considerations

+

Since Fedora 42, or grubby-8.40-82.fc42.x86_64, there is a bug BZ#2361624 +that causes the default kernel to change to a newly added kernel. You +can ensure that a particular kernel is booted by setting the +default: true entry for the kernel within the bootloader_settings variable.

+

Role Variables

+

bootloader_gather_facts

+

Whether to gather bootloader_facts +that contain boot information for all kernels.

+

Default: false

+

Type: bool

+

bootloader_settings

+

Use this variable to list kernels and their command line +parameters.

+

Available keys:

+
    +
  1. kernel - with this, specify the kernel to update +settings for. Each entry should specify a kernel using one or more +keys.

    +

    If you want to add a kernel, you must specify three keys: +path, title, initrd.

    +

    If you want to modify or remove a kernel, you can specify one or more +keys.

    +

    You can also specify DEFAULT or ALL to +update the default or all kernels.

    +

    Available keys:

    +
      +
    • path - kernel path
    • +
    • index - kernel index
    • +
    • title - kernel title
    • +
    • initrd - kernel initrd image
    • +
    +

    Available strings:

    +
      +
    • DEFAULT - to update the default entry
    • +
    • ALL - to update all of the entries
    • +
  2. +
  3. state - state of the kernel.

    +

    Available values: present, absent

    +

    Default: present

  4. +
  5. options - use this to specify settings to update

    +
      +
    • name - The name of the setting. Omit name +when using replaced.
    • +
    • value - The value for the setting. You must omit +value if the setting has no value, e.g. quiet. +NOTE - a value must not be YAML bool type. One situation +where this might be a problem is using value: on or other +YAML bool typed value. You must quote these values, or +otherwise pass them as a value of str type e.g. +value: "on". The same applies to null values. +If you specify a value, it must not be null - values such +as value: or value: ~ or +value: null are not allowed and will raise an error.
    • +
    • state - present (default) or +absent. The value absent means to remove a +setting with the given name - the name must be +provided.
    • +
    • previous - Optional - the only supported value is +replaced - use this to specify that the previous settings +should be replaced with the given settings.
    • +
    • copy_default - Optional - when creating a kernel, you +can specify copy_default: true to copy the default +arguments to the created kernel.
    • +
  6. +
  7. default - boolean that identifies whether to make +this kernel the default. By default, the role does not change the +default kernel.

  8. +
+

For an example, see Example +Playbook.

+

Default: {}

+

Type: dict

+

bootloader_timeout

+

Use this variable to customize the loading time of the GRUB +bootloader.

+

Usually the native setting for timeout is 5.

+

When this variable is not set by a user, the role doesn't change the +timeout setting.

+

Default: null

+

Type: int

+

bootloader_password

+

Use this variable to protect boot parameters with a password.

+

WARNING: Changing the bootloader password is not +idempotent. Use bootloader_password_hash for idempotent +password configuration. These two inputs cannot be used together. On +SUSE, setting the same password again changes nothing (see +README-suse.md).

+

The bootloader username is always root.

+

This should come from vault.

+

If unset, current configuration is not touched.

+

Default: null

+

Type: string

+

bootloader_password_hash

+

Use this variable to set a precomputed GRUB PBKDF2 SHA512 password +hash for the bootloader user root. Generate the hash with +grub2-mkpasswd-pbkdf2 and store it in Ansible Vault. Supply +only the resulting grub.pbkdf2.sha512... hash, without the +command's explanatory text or a trailing newline. The hash must have a +positive iteration count, a nonempty hexadecimal salt consisting of +whole bytes, and a 64-byte hexadecimal digest.

+

Setting the same hash repeatedly is idempotent. If unset or +null, no hash is written. An empty string is invalid; use +bootloader_remove_password: true with this variable unset +or null to remove a password.

+

Do not combine this variable with a non-null +bootloader_password or with +bootloader_remove_password: true.

+

For example, where vault_bootloader_password_hash +contains the generated hash:

+
bootloader_password_hash: "{{ vault_bootloader_password_hash }}"
+

Default: null

+

Type: string

+

bootloader_remove_password

+

Set this variable to true to remove the bootloader +password.

+

Default: false

+

Type: bool

+

bootloader_reboot_ok

+

If true, the role will reboot the managed host when it +detects that changes require a reboot to take effect.

+

If false, it is up to you to determine when to reboot +the managed host.

+

The role will return the variable +bootloader_reboot_required (see below) with a value of +true to indicate that changes have occurred which need a +reboot to take effect.

+

Default: false

+

Type: bool

+

bootloader_secure_logging

+

If true, suppress potentially sensitive output from +tasks that handle credentials, secrets, and other sensitive data by +setting no_log: true on those tasks. This prevents +passwords, API tokens, private keys, and similar sensitive information +from appearing in Ansible logs and console output.

+

If you need to debug issues with credential handling or secret +management, you can temporarily set +bootloader_secure_logging: false to see the full output +from these tasks. However, be aware that this may expose sensitive +information in logs, so it should only be used in development or +troubleshooting scenarios.

+

Default: true

+

Type: bool

+

Variables Exported by the +Role

+

The role exports the following variables:

+

bootloader_reboot_needed

+

Default: false - if true, this means a +reboot is needed to apply the changes made by the role.

+

bootloader_facts

+

Contains boot information for all kernels.

+

The role returns this variable when you set +bootloader_gather_facts: true.

+

For example:

+
"bootloader_facts": [
+    {
+        "args": "ro rootflags=subvol=root rd.luks.uuid=luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet",
+        "id": "luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet",
+        "index": "3",
+        "initrd": "/boot/initramfs-0-rescue-c44543d15b2c4e898912c2497f734e67.img",
+        "kernel": "/boot/vmlinuz-0-rescue-c44543d15b2c4e898912c2497f734e67",
+        "root": "UUID=65c70529-e9ad-4778-9001-18fe8c525285",
+        "title": "Fedora Linux (0-rescue-c44543d15b2c4e898912c2497f734e67) 36 (Workstation Edition)",
+        "default": True
+    },
+    {
+        "args": "ro rootflags=subvol=root rd.luks.uuid=luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "id": "luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "index": "2",
+        "initrd": "/boot/initramfs-6.3.12-100.fc37.x86_64.img $tuned_initrd",
+        "kernel": "/boot/vmlinuz-6.3.12-100.fc37.x86_64",
+        "root": "UUID=65c70529-e9ad-4778-9001-18fe8c525285",
+        "title": "Fedora Linux (6.3.12-100.fc37.x86_64) 37 (Workstation Edition)",
+        "default": False
+    },
+    {
+        "args": "ro rootflags=subvol=root rd.luks.uuid=luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "id": "luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "index": "1",
+        "initrd": "/boot/initramfs-6.4.15-100.fc37.x86_64.img $tuned_initrd",
+        "kernel": "/boot/vmlinuz-6.4.15-100.fc37.x86_64",
+        "root": "UUID=65c70529-e9ad-4778-9001-18fe8c525285",
+        "title": "Fedora Linux (6.4.15-100.fc37.x86_64) 37 (Workstation Edition)",
+        "default": False
+    },
+    {
+        "args": "ro rootflags=subvol=root rd.luks.uuid=luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "id": "luks-9da1fdf5-14ac-49fd-a388-8b1ee48f3df1 rhgb quiet $tuned_params",
+        "index": "0",
+        "initrd": "/boot/initramfs-6.5.7-100.fc37.x86_64.img $tuned_initrd",
+        "kernel": "/boot/vmlinuz-6.5.7-100.fc37.x86_64",
+        "root": "UUID=65c70529-e9ad-4778-9001-18fe8c525285",
+        "title": "Fedora Linux (6.5.7-100.fc37.x86_64) 37 (Workstation Edition)",
+        "default": False
+    }
+]
+

Example Playbook

+
- hosts: all
+  vars:
+    bootloader_settings:
+      # Update an existing kernel using path and replacing previous settings
+      - kernel:
+          path: /boot/vmlinuz-6.5.7-100.fc37.x86_64
+        options:
+          - name: console
+            value: tty0
+            state: present
+          - previous: replaced
+        default: false
+      # Update an existing kernel using index
+      - kernel:
+          index: 1
+        options:
+          - name: print-fatal-signals
+            value: 1
+        default: true
+      # Update an existing kernel using title
+      - kernel:
+          title: Red Hat Enterprise Linux (4.1.1.1.el8.x86_64) 8
+        options:
+          - name: no_timer_check
+        state: present
+      # Add a kernel with arguments
+      - kernel:
+          path: /boot/vmlinuz-6.5.7-100.fc37.x86_64
+          initrd: /boot/initramfs-6.5.7-100.fc37.x86_64.img
+          title: My kernel
+        options:
+          - name: console
+            value: tty0
+          - name: print-fatal-signals
+            value: 1
+          - name: no_timer_check
+            state: present
+        state: present
+      # Add a kernel with arguments and copying default arguments
+      - kernel:
+          path: /boot/vmlinuz-6.5.7-100.fc37.x86_64
+          initrd: /boot/initramfs-6.5.7-100.fc37.x86_64.img
+          title: My kernel
+        options:
+          - name: console
+            value: tty0
+          - copy_default: true
+        state: present
+      # Remove a kernel
+      - kernel:
+          title: My kernel
+        state: absent
+      # Update all kernels
+      - kernel: ALL
+        options:
+          - name: debug
+            state: present
+      # Update the default kernel
+      - kernel: DEFAULT
+        options:
+          - name: quiet
+            state: present
+    bootloader_timeout: 5
+    bootloader_password: null
+    bootloader_remove_password: false
+    bootloader_reboot_ok: true
+  roles:
+    - linux-system-roles.bootloader
+

rpm-ostree

+

See README-ostree.md

+

SUSE

+

See README-suse.md

+

License

+

MIT

+
+ + diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d7cc5f..f52bc87a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,41 @@ Changelog ========= +[2.3.0] - 2026-11-23 +-------------------- + +### New Features + +- feat: support precomputed bootloader password hashes (#252) +- feat: Add SLE16 support (#270) + +### Bug Fixes + +- fix: handle the extra /boot prefix that grubby reports on some platforms (#277) + +### Other Changes + +- ci: no CI test by default - implement slash commands for CI tests [citest_skip] (#250) +- ci: allow lsr org members to run ci tests (#253) +- docs: Auto-generate README.md from meta files (#254) +- ci: Run Dependabot monthly and group changes in a single PR (#260) +- ci: bump tox-lsr version 3.21.0, myrotvorets/set-commit-status-action, support leap-16.0 (#261) +- test: check invalid inputs for correct error message (#262) +- ci: use shared actions and lock workflow dependencies (#263) +- ci: use shared actions and lock workflow dependencies (#264) +- ci: Use order 10 for centos vault task so that it runs first (#265) +- docs: add AI policy; update setup-python, codeql actions (#266) +- ci: retry centos vault repo failures using new package_retry yum/dnf plugin (#267) +- docs: tag markdown plain text blocks correctly (#268) +- ci: Use a fixed 5 minute backoff for CentOS vault repos (#269) +- ci: support Fedora 45, Ansible 2.22; drop Fedora 43 (#271) +- ci: use ubuntu 24.04 for test envs that use py39 (#272) +- ci: Prepare for README files generated from argument_specs and extra_specs (#273) +- ci: Bump tox-lsr (#275) +- docs: add AGENTS.md with shared developer conventions from .github (#278) +- docs: remove extra blank lines from .coderabbit.yaml (#279) +- ci: update tox-lsr for support for tests/module_utils (#280) + [2.2.0] - 2026-09-17 --------------------