# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-add-remove-kernelscz2sggsy/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_settings.yml *************************************************** 1 plays in /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml PLAY [Test bootloader_settings variable] *************************************** TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:11 Tuesday 02 January 2024 15:13:19 +0000 (0:00:00.012) 0:00:00.012 ******* TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:13:19 +0000 (0:00:00.020) 0:00:00.032 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:13:19 +0000 (0:00:00.008) 0:00:00.040 ******* ok: [sut] TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Tuesday 02 January 2024 15:13:19 +0000 (0:00:00.473) 0:00:00.514 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:13:19 +0000 (0:00:00.017) 0:00:00.531 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:13:20 +0000 (0:00:01.276) 0:00:01.808 ******* ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.245) 0:00:02.054 ******* ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.248) 0:00:02.302 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.243) 0:00:02.546 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.019) 0:00:02.565 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.011) 0:00:02.577 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.008) 0:00:02.586 ******* skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.013) 0:00:02.599 ******* ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "6c83974d4a6440f6906d47993c6f2da1-5.14.0-391.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-391.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-391.el9.x86_64", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (5.14.0-391.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "6c83974d4a6440f6906d47993c6f2da1-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-6c83974d4a6440f6906d47993c6f2da1.img", "kernel": "/boot/vmlinuz-0-rescue-6c83974d4a6440f6906d47993c6f2da1", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (0-rescue-6c83974d4a6440f6906d47993c6f2da1) 9" } ] }, "changed": false } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:17 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.374) 0:00:02.973 ******* META: triggered running handlers for sut TASK [Verify that default bootloader is correct in bootloader_gather_facts] **** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:20 Tuesday 02 January 2024 15:13:21 +0000 (0:00:00.001) 0:00:02.974 ******* ok: [sut] => { "changed": false, "cmd": [ "grubby", "--default-kernel" ], "delta": "0:00:00.046419", "end": "2024-01-02 15:13:22.250005", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:13:22.203586" } STDOUT: /boot/vmlinuz-5.14.0-391.el9.x86_64 TASK [Replace configuration with settings using kernel index] ****************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:28 Tuesday 02 January 2024 15:13:22 +0000 (0:00:00.299) 0:00:03.273 ******* TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:13:22 +0000 (0:00:00.020) 0:00:03.294 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:13:22 +0000 (0:00:00.008) 0:00:03.302 ******* skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Tuesday 02 January 2024 15:13:22 +0000 (0:00:00.015) 0:00:03.318 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:13:22 +0000 (0:00:00.016) 0:00:03.334 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:13:23 +0000 (0:00:01.194) 0:00:04.528 ******* Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --update-kernel=0 --remove-args='ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0'", "grubby --update-kernel=0 --args='console=tty0 print-fatal-signals=1 no_timer_check quiet'", "grubby --update-kernel=ALL --args=debug" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.866) 0:00:05.395 ******* Notification for handler Rebuild grub config has been saved. changed: [sut] => { "backup": "", "changed": true } MSG: line replaced TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.185) 0:00:05.581 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.178) 0:00:05.760 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.019) 0:00:05.780 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.009) 0:00:05.790 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.008) 0:00:05.798 ******* skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Tuesday 02 January 2024 15:13:24 +0000 (0:00:00.014) 0:00:05.812 ******* ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "console=tty0 print-fatal-signals=1 no_timer_check quiet debug", "default": true, "id": "6c83974d4a6440f6906d47993c6f2da1-5.14.0-391.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-391.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-391.el9.x86_64", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (5.14.0-391.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 debug", "default": false, "id": "6c83974d4a6440f6906d47993c6f2da1-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-6c83974d4a6440f6906d47993c6f2da1.img", "kernel": "/boot/vmlinuz-0-rescue-6c83974d4a6440f6906d47993c6f2da1", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (0-rescue-6c83974d4a6440f6906d47993c6f2da1) 9" } ] }, "changed": false } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:51 Tuesday 02 January 2024 15:13:25 +0000 (0:00:00.299) 0:00:06.112 ******* NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Rebuild grub config for sut META: triggered running handlers for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Tuesday 02 January 2024 15:13:25 +0000 (0:00:00.002) 0:00:06.114 ******* changed: [sut] => { "changed": true, "cmd": "set -o pipefail\ngrubby --info=DEFAULT | awk '/^args/ {print $0}'\ncat /etc/default/grub\neval $(grubby --info=DEFAULT | awk '/^args/ {print $0}')\nsed -i -e \"s|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\\\"$args\\\"|\" /etc/default/grub\ncat /etc/default/grub", "delta": "0:00:00.113382", "end": "2024-01-02 15:13:25.401696", "rc": 0, "start": "2024-01-02 15:13:25.288314" } STDOUT: args="console=tty0 print-fatal-signals=1 no_timer_check quiet debug" GRUB_TIMEOUT=6 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 debug" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=6 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="console=tty0 print-fatal-signals=1 no_timer_check quiet debug" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Rebuild grub config] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:19 Tuesday 02 January 2024 15:13:25 +0000 (0:00:00.298) 0:00:06.412 ******* changed: [sut] => { "changed": true, "cmd": [ "grub2-mkconfig", "-o", "/boot/grub2/grub.cfg" ], "delta": "0:00:01.949397", "end": "2024-01-02 15:13:27.535575", "rc": 0, "start": "2024-01-02 15:13:25.586178" } STDERR: Generating grub configuration file ... Adding boot menu entry for UEFI Firmware Settings ... done RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:23 Tuesday 02 January 2024 15:13:27 +0000 (0:00:02.133) 0:00:08.546 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Tuesday 02 January 2024 15:13:27 +0000 (0:00:00.008) 0:00:08.554 ******* changed: [sut] => { "changed": true, "elapsed": 47, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Tuesday 02 January 2024 15:14:15 +0000 (0:00:48.163) 0:00:56.718 ******* skipping: [sut] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Tuesday 02 January 2024 15:14:15 +0000 (0:00:00.006) 0:00:56.725 ******* ok: [sut] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is set to false] *********************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:54 Tuesday 02 January 2024 15:14:15 +0000 (0:00:00.008) 0:00:56.733 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:58 Tuesday 02 January 2024 15:14:15 +0000 (0:00:00.015) 0:00:56.749 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify boot loader timeout configuration] ******************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:65 Tuesday 02 January 2024 15:14:15 +0000 (0:00:00.018) 0:00:56.768 ******* ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/grub.cfg" ], "delta": "0:00:01.005164", "end": "2024-01-02 15:14:16.994872", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:14:15.989708" } STDOUT: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set pager=1 if [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="${saved_entry}" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_output console if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=6 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=6 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_users ### if [ -f ${prefix}/user.cfg ]; then source ${prefix}/user.cfg if [ -n "${GRUB2_PASSWORD}" ]; then set superusers="root" export superusers password_pbkdf2 root ${GRUB2_PASSWORD} fi fi ### END /etc/grub.d/01_users ### ### BEGIN /etc/grub.d/08_fallback_counting ### insmod increment # Check if boot_counter exists and boot_success=0 to activate this behaviour. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then # if countdown has ended, choose to boot rollback deployment, # i.e. default=1 on OSTree-based systems. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then set default=1 set boot_counter=-1 # otherwise decrement boot_counter else decrement boot_counter fi save_env boot_counter fi ### END /etc/grub.d/08_fallback_counting ### ### BEGIN /etc/grub.d/10_linux ### insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=root 5886423c-630d-450a-9577-b6e65e40c45b insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=boot 5886423c-630d-450a-9577-b6e65e40c45b # This section was generated by a script. Do not modify the generated file - all changes # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files. # # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and # populates the boot menu. Please refer to the Boot Loader Specification documentation # for the files format: https://systemd.io/BOOT_LOADER_SPECIFICATION/. # The kernelopts variable should be defined in the grubenv file. But to ensure that menu # entries populated from BootLoaderSpec files that use this variable work correctly even # without a grubenv file, define a fallback kernelopts variable if this has not been set. # # The kernelopts variable in the grubenv file can be modified using the grubby tool or by # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both # the kernelopts variable in the grubenv file and the fallback kernelopts variable. if [ -z "${kernelopts}" ]; then set kernelopts="root=UUID=5886423c-630d-450a-9577-b6e65e40c45b ro console=tty0 print-fatal-signals=1 no_timer_check quiet debug " fi insmod blscfg blscfg ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_reset_boot_success ### # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then set menu_hide_ok=1 else set menu_hide_ok=0 fi # Reset boot_indeterminate after a successful boot if [ "${boot_success}" = "1" ] ; then set boot_indeterminate=0 # Avoid boot_indeterminate causing the menu to be hidden more than once elif [ "${boot_indeterminate}" = "1" ]; then set boot_indeterminate=2 fi # Reset boot_success for current boot set boot_success=0 save_env boot_success boot_indeterminate ### END /etc/grub.d/10_reset_boot_success ### ### BEGIN /etc/grub.d/12_menu_auto_hide ### if [ x$feature_timeout_style = xy ] ; then if [ "${menu_show_once}" ]; then unset menu_show_once save_env menu_show_once set timeout_style=menu set timeout=60 elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then set orig_timeout_style=${timeout_style} set orig_timeout=${timeout} if [ "${fastboot}" = "1" ]; then # timeout_style=menu + timeout=0 avoids the countdown code keypress check set timeout_style=menu set timeout=0 else set timeout_style=hidden set timeout=1 fi fi fi ### END /etc/grub.d/12_menu_auto_hide ### ### BEGIN /etc/grub.d/14_menu_show_once ### if [ x$feature_timeout_style = xy ]; then if [ "${menu_show_once_timeout}" ]; then set timeout_style=menu set timeout="${menu_show_once_timeout}" unset menu_show_once_timeout save_env menu_show_once_timeout fi fi ### END /etc/grub.d/14_menu_show_once ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### if [ "$grub_platform" = "efi" ]; then menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' { fwsetup } fi ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg fi ### END /etc/grub.d/41_custom ### TASK [Change some settings using kernel title] ********************************* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:72 Tuesday 02 January 2024 15:14:17 +0000 (0:00:01.241) 0:00:58.009 ******* TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:14:17 +0000 (0:00:00.023) 0:00:58.033 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:14:17 +0000 (0:00:00.008) 0:00:58.042 ******* skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Tuesday 02 January 2024 15:14:17 +0000 (0:00:00.015) 0:00:58.057 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:14:17 +0000 (0:00:00.016) 0:00:58.074 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:14:20 +0000 (0:00:03.604) 0:01:01.679 ******* Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --update-kernel=TITLE='CentOS Stream (5.14.0-391.el9.x86_64) 9' --remove-args='quiet debug'" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.447) 0:01:02.126 ******* Notification for handler Rebuild grub config has been saved. changed: [sut] => { "backup": "", "changed": true } MSG: line replaced TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.206) 0:01:02.333 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.182) 0:01:02.516 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.021) 0:01:02.537 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.011) 0:01:02.548 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.009) 0:01:02.557 ******* skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.013) 0:01:02.571 ******* ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro console=tty0 print-fatal-signals=1 no_timer_check", "default": true, "id": "6c83974d4a6440f6906d47993c6f2da1-5.14.0-391.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-391.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-391.el9.x86_64", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (5.14.0-391.el9.x86_64) 9" }, { "args": "ro console=tty0 print-fatal-signals=1 no_timer_check quiet debug", "default": false, "id": "6c83974d4a6440f6906d47993c6f2da1-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-6c83974d4a6440f6906d47993c6f2da1.img", "kernel": "/boot/vmlinuz-0-rescue-6c83974d4a6440f6906d47993c6f2da1", "root": "UUID=5886423c-630d-450a-9577-b6e65e40c45b", "title": "CentOS Stream (0-rescue-6c83974d4a6440f6906d47993c6f2da1) 9" } ] }, "changed": false } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:87 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.307) 0:01:02.878 ******* NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Rebuild grub config for sut META: triggered running handlers for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Tuesday 02 January 2024 15:14:21 +0000 (0:00:00.001) 0:01:02.880 ******* changed: [sut] => { "changed": true, "cmd": "set -o pipefail\ngrubby --info=DEFAULT | awk '/^args/ {print $0}'\ncat /etc/default/grub\neval $(grubby --info=DEFAULT | awk '/^args/ {print $0}')\nsed -i -e \"s|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\\\"$args\\\"|\" /etc/default/grub\ncat /etc/default/grub", "delta": "0:00:00.111784", "end": "2024-01-02 15:14:22.171844", "rc": 0, "start": "2024-01-02 15:14:22.060060" } STDOUT: args="ro console=tty0 print-fatal-signals=1 no_timer_check" GRUB_TIMEOUT=4 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="console=tty0 print-fatal-signals=1 no_timer_check quiet debug" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=4 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro console=tty0 print-fatal-signals=1 no_timer_check" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Rebuild grub config] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:19 Tuesday 02 January 2024 15:14:22 +0000 (0:00:00.303) 0:01:03.183 ******* changed: [sut] => { "changed": true, "cmd": [ "grub2-mkconfig", "-o", "/boot/grub2/grub.cfg" ], "delta": "0:00:01.128428", "end": "2024-01-02 15:14:23.487872", "rc": 0, "start": "2024-01-02 15:14:22.359444" } STDERR: Generating grub configuration file ... Adding boot menu entry for UEFI Firmware Settings ... done RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:23 Tuesday 02 January 2024 15:14:23 +0000 (0:00:01.315) 0:01:04.498 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Tuesday 02 January 2024 15:14:23 +0000 (0:00:00.007) 0:01:04.506 ******* changed: [sut] => { "changed": true, "elapsed": 36, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Tuesday 02 January 2024 15:15:00 +0000 (0:00:37.087) 0:01:41.593 ******* skipping: [sut] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Tuesday 02 January 2024 15:15:00 +0000 (0:00:00.007) 0:01:41.600 ******* ok: [sut] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is set to false] *********************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:90 Tuesday 02 January 2024 15:15:00 +0000 (0:00:00.008) 0:01:41.609 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:94 Tuesday 02 January 2024 15:15:00 +0000 (0:00:00.016) 0:01:41.626 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify boot loader timeout configuration] ******************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:101 Tuesday 02 January 2024 15:15:00 +0000 (0:00:00.019) 0:01:41.645 ******* ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/grub.cfg" ], "delta": "0:00:01.004932", "end": "2024-01-02 15:15:01.938057", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:15:00.933125" } STDOUT: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set pager=1 if [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="${saved_entry}" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_output console if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=4 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=4 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_users ### if [ -f ${prefix}/user.cfg ]; then source ${prefix}/user.cfg if [ -n "${GRUB2_PASSWORD}" ]; then set superusers="root" export superusers password_pbkdf2 root ${GRUB2_PASSWORD} fi fi ### END /etc/grub.d/01_users ### ### BEGIN /etc/grub.d/08_fallback_counting ### insmod increment # Check if boot_counter exists and boot_success=0 to activate this behaviour. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then # if countdown has ended, choose to boot rollback deployment, # i.e. default=1 on OSTree-based systems. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then set default=1 set boot_counter=-1 # otherwise decrement boot_counter else decrement boot_counter fi save_env boot_counter fi ### END /etc/grub.d/08_fallback_counting ### ### BEGIN /etc/grub.d/10_linux ### insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=root 5886423c-630d-450a-9577-b6e65e40c45b insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=boot 5886423c-630d-450a-9577-b6e65e40c45b # This section was generated by a script. Do not modify the generated file - all changes # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files. # # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and # populates the boot menu. Please refer to the Boot Loader Specification documentation # for the files format: https://systemd.io/BOOT_LOADER_SPECIFICATION/. # The kernelopts variable should be defined in the grubenv file. But to ensure that menu # entries populated from BootLoaderSpec files that use this variable work correctly even # without a grubenv file, define a fallback kernelopts variable if this has not been set. # # The kernelopts variable in the grubenv file can be modified using the grubby tool or by # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both # the kernelopts variable in the grubenv file and the fallback kernelopts variable. if [ -z "${kernelopts}" ]; then set kernelopts="root=UUID=5886423c-630d-450a-9577-b6e65e40c45b ro ro console=tty0 print-fatal-signals=1 no_timer_check " fi insmod blscfg blscfg ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_reset_boot_success ### # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then set menu_hide_ok=1 else set menu_hide_ok=0 fi # Reset boot_indeterminate after a successful boot if [ "${boot_success}" = "1" ] ; then set boot_indeterminate=0 # Avoid boot_indeterminate causing the menu to be hidden more than once elif [ "${boot_indeterminate}" = "1" ]; then set boot_indeterminate=2 fi # Reset boot_success for current boot set boot_success=0 save_env boot_success boot_indeterminate ### END /etc/grub.d/10_reset_boot_success ### ### BEGIN /etc/grub.d/12_menu_auto_hide ### if [ x$feature_timeout_style = xy ] ; then if [ "${menu_show_once}" ]; then unset menu_show_once save_env menu_show_once set timeout_style=menu set timeout=60 elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then set orig_timeout_style=${timeout_style} set orig_timeout=${timeout} if [ "${fastboot}" = "1" ]; then # timeout_style=menu + timeout=0 avoids the countdown code keypress check set timeout_style=menu set timeout=0 else set timeout_style=hidden set timeout=1 fi fi fi ### END /etc/grub.d/12_menu_auto_hide ### ### BEGIN /etc/grub.d/14_menu_show_once ### if [ x$feature_timeout_style = xy ]; then if [ "${menu_show_once_timeout}" ]; then set timeout_style=menu set timeout="${menu_show_once_timeout}" unset menu_show_once_timeout save_env menu_show_once_timeout fi fi ### END /etc/grub.d/14_menu_show_once ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### if [ "$grub_platform" = "efi" ]; then menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' { fwsetup } fi ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg fi ### END /etc/grub.d/41_custom ### TASK [Set existing variable using kernel path, should report not changed] ****** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:108 Tuesday 02 January 2024 15:15:01 +0000 (0:00:01.228) 0:01:42.873 ******* TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.026) 0:01:42.899 ******* included: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.008) 0:01:42.908 ******* skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:8 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.015) 0:01:42.923 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Tuesday 02 January 2024 15:15:01 +0000 (0:00:00.016) 0:01:42.940 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 Tuesday 02 January 2024 15:15:05 +0000 (0:00:03.897) 0:01:46.837 ******* ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:18 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.448) 0:01:47.286 ******* ok: [sut] => { "backup": "", "changed": false } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:25 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.210) 0:01:47.496 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:30 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.190) 0:01:47.687 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.019) 0:01:47.707 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:56 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.010) 0:01:47.718 ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:64 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.009) 0:01:47.728 ******* skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.014) 0:01:47.742 ******* skipping: [sut] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:121 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.013) 0:01:47.755 ******* META: triggered running handlers for sut TASK [Ensure bootloader_reboot_required is not set to true] ******************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:124 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.000) 0:01:47.756 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:128 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.008) 0:01:47.765 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify boot loader timeout configuration] ******************************** task path: /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:135 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.018) 0:01:47.784 ******* ok: [sut] => { "changed": false, "cmd": [ "cat", "/boot/grub2/grub.cfg" ], "delta": "0:00:00.003174", "end": "2024-01-02 15:15:06.968203", "failed_when_result": false, "rc": 0, "start": "2024-01-02 15:15:06.965029" } STDOUT: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set pager=1 if [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="${saved_entry}" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_output console if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=4 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=4 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_users ### if [ -f ${prefix}/user.cfg ]; then source ${prefix}/user.cfg if [ -n "${GRUB2_PASSWORD}" ]; then set superusers="root" export superusers password_pbkdf2 root ${GRUB2_PASSWORD} fi fi ### END /etc/grub.d/01_users ### ### BEGIN /etc/grub.d/08_fallback_counting ### insmod increment # Check if boot_counter exists and boot_success=0 to activate this behaviour. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then # if countdown has ended, choose to boot rollback deployment, # i.e. default=1 on OSTree-based systems. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then set default=1 set boot_counter=-1 # otherwise decrement boot_counter else decrement boot_counter fi save_env boot_counter fi ### END /etc/grub.d/08_fallback_counting ### ### BEGIN /etc/grub.d/10_linux ### insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=root 5886423c-630d-450a-9577-b6e65e40c45b insmod part_msdos insmod xfs search --no-floppy --fs-uuid --set=boot 5886423c-630d-450a-9577-b6e65e40c45b # This section was generated by a script. Do not modify the generated file - all changes # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files. # # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and # populates the boot menu. Please refer to the Boot Loader Specification documentation # for the files format: https://systemd.io/BOOT_LOADER_SPECIFICATION/. # The kernelopts variable should be defined in the grubenv file. But to ensure that menu # entries populated from BootLoaderSpec files that use this variable work correctly even # without a grubenv file, define a fallback kernelopts variable if this has not been set. # # The kernelopts variable in the grubenv file can be modified using the grubby tool or by # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both # the kernelopts variable in the grubenv file and the fallback kernelopts variable. if [ -z "${kernelopts}" ]; then set kernelopts="root=UUID=5886423c-630d-450a-9577-b6e65e40c45b ro ro console=tty0 print-fatal-signals=1 no_timer_check " fi insmod blscfg blscfg ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_reset_boot_success ### # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then set menu_hide_ok=1 else set menu_hide_ok=0 fi # Reset boot_indeterminate after a successful boot if [ "${boot_success}" = "1" ] ; then set boot_indeterminate=0 # Avoid boot_indeterminate causing the menu to be hidden more than once elif [ "${boot_indeterminate}" = "1" ]; then set boot_indeterminate=2 fi # Reset boot_success for current boot set boot_success=0 save_env boot_success boot_indeterminate ### END /etc/grub.d/10_reset_boot_success ### ### BEGIN /etc/grub.d/12_menu_auto_hide ### if [ x$feature_timeout_style = xy ] ; then if [ "${menu_show_once}" ]; then unset menu_show_once save_env menu_show_once set timeout_style=menu set timeout=60 elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then set orig_timeout_style=${timeout_style} set orig_timeout=${timeout} if [ "${fastboot}" = "1" ]; then # timeout_style=menu + timeout=0 avoids the countdown code keypress check set timeout_style=menu set timeout=0 else set timeout_style=hidden set timeout=1 fi fi fi ### END /etc/grub.d/12_menu_auto_hide ### ### BEGIN /etc/grub.d/14_menu_show_once ### if [ x$feature_timeout_style = xy ]; then if [ "${menu_show_once_timeout}" ]; then set timeout_style=menu set timeout="${menu_show_once_timeout}" unset menu_show_once_timeout save_env menu_show_once_timeout fi fi ### END /etc/grub.d/14_menu_show_once ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### if [ "$grub_platform" = "efi" ]; then menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' { fwsetup } fi ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg fi ### END /etc/grub.d/41_custom ### PLAY RECAP ********************************************************************* sut : ok=48 changed=10 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0 Tuesday 02 January 2024 15:15:06 +0000 (0:00:00.200) 0:01:47.984 ******* =============================================================================== fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 48.16s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 37.09s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.90s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.60s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Rebuild grub config -------------- 2.13s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:19 fedora.linux_system_roles.bootloader : Rebuild grub config -------------- 1.32s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:19 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.28s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Verify boot loader timeout configuration -------------------------------- 1.24s /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:65 ----------- Verify boot loader timeout configuration -------------------------------- 1.23s /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:101 ---------- fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.19s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.87s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.47s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.45s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.45s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:11 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.37s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.31s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 fedora.linux_system_roles.bootloader : Fix default kernel boot parameters --- 0.30s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.30s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:71 Verify that default bootloader is correct in bootloader_gather_facts ---- 0.30s /WORKDIR/git-add-remove-kernelscz2sggsy/tests/tests_settings.yml:20 ----------- fedora.linux_system_roles.bootloader : Fix default kernel boot parameters --- 0.30s /WORKDIR/git-add-remove-kernelscz2sggsy/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---