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