Rhel_system_roles.bootloader - need to manually rebuild grub after configuration?

rhel_system_roles.bootloader - need to manually rebuild grub configuration?
Hi!
I am using rhel_system_roles.bootloader to configure a bootloader password.
I notice that when I run the role it configures /boot/grub2/user.cfg with a GRUB2_PASSWORD but it does not rebuild the grub configuration which means that the changes does not take effect. Is this by design? The documentation does not mention anything about it as I can see.

To rebuild the grub configuration I had to manually run:

grub2-mkconfig -o /boot/grub2/grub.cfg

This has been tested using version collection version 1.95.7 on RHEL9.6.
I am using below variables as input to the role:

# Note: bootloader_pw is defined in AAP Credential Bootloader_pw
bootloader_password: "{{ bootloader_pw }}"
bootloader_reboot_ok: true

rhel-system-roles

Hi Jerry, sorry for resurrecting this post from the dead, but did you ever get an answer to this?

Ran into exactly the same issue and found your post on the forum.

If rhel_system_roles.bootloader claims to manage the bootloader it should include a step that does that, else what’s the point? :slight_smile:

Also opening a Red Hat case on this to see what’s “the official word” is.

Checked the issues on the upstream linux-system-roles/bootloader but found no mention of it.