ansible-playbook [core 2.17.5] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-n2G executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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_add_rm.yml ***************************************************** 1 plays in /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml PLAY [Test creating, modifying, and removing kernels] ************************** TASK [Skip on s390x architecture] ********************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:13 Saturday 02 November 2024 08:51:15 -0400 (0:00:00.009) 0:00:00.009 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml for managed-node1 TASK [Gather architecture facts] *********************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:3 Saturday 02 November 2024 08:51:15 -0400 (0:00:00.014) 0:00:00.023 ***** [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [End host on s390x architecture] ****************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:8 Saturday 02 November 2024 08:51:17 -0400 (0:00:02.158) 0:00:02.182 ***** META: end_host conditional evaluated to False, continuing execution for managed-node1 skipping: [managed-node1] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node1" } MSG: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [Get bootloader_facts] **************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:16 Saturday 02 November 2024 08:51:17 -0400 (0:00:00.005) 0:00:02.188 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:51:17 -0400 (0:00:00.062) 0:00:02.251 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:51:17 -0400 (0:00:00.018) 0:00:02.269 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:51:17 -0400 (0:00:00.033) 0:00:02.303 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:51:18 -0400 (0:00:00.418) 0:00:02.721 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:51:18 -0400 (0:00:00.021) 0:00:02.743 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:51:18 -0400 (0:00:00.030) 0:00:02.773 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:51:18 -0400 (0:00:00.011) 0:00:02.785 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:51:34 -0400 (0:00:16.047) 0:00:18.832 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730280251.5000515, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3533df6d61119d3dbd6959a265d5a35134a0f8cc", "ctime": 1730280251.5010514, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8528262, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730280251.5000515, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 338, "uid": 0, "version": "2434721543", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:51:34 -0400 (0:00:00.353) 0:00:19.186 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:51:34 -0400 (0:00:00.014) 0:00:19.200 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:51:34 -0400 (0:00:00.012) 0:00:19.212 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:51:35 -0400 (0:00:00.313) 0:00:19.526 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:51:35 -0400 (0:00:00.042) 0:00:19.568 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551894.7541194, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3533df6d61119d3dbd6959a265d5a35134a0f8cc", "ctime": 1730280251.5010514, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8528262, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730280251.5000515, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 338, "uid": 0, "version": "2434721543", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:51:35 -0400 (0:00:00.328) 0:00:19.896 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730279270.613, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "31b0d0c139cdee14c63265c0f21cf9de43787d58", "ctime": 1730279270.613, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13269993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730279270.613, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6755, "uid": 0, "version": "2313991446", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:51:35 -0400 (0:00:00.345) 0:00:20.242 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.005015", "end": "2024-11-02 08:51:36.290538", "rc": 0, "start": "2024-11-02 08:51:36.285523" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:51:36 -0400 (0:00:00.452) 0:00:20.694 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:51:36 -0400 (0:00:00.035) 0:00:20.729 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:51:36 -0400 (0:00:00.447) 0:00:21.177 ***** changed: [managed-node1] => { "changed": true, "rc": 0 } MSG: 6 replacements made TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:51:37 -0400 (0:00:00.358) 0:00:21.535 ***** ok: [managed-node1] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:51:37 -0400 (0:00:00.490) 0:00:22.025 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:51:37 -0400 (0:00:00.027) 0:00:22.053 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:51:37 -0400 (0:00:00.025) 0:00:22.079 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:51:37 -0400 (0:00:00.040) 0:00:22.119 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": false, "id": "3a13afcd92654f5cb73fd5e426319cf2-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-3a13afcd92654f5cb73fd5e426319cf2.img", "kernel": "/boot/vmlinuz-0-rescue-3a13afcd92654f5cb73fd5e426319cf2", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (0-rescue-3a13afcd92654f5cb73fd5e426319cf2) 9" } ] }, "changed": false } TASK [Skip test on ostree systems] ********************************************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:22 Saturday 02 November 2024 08:51:38 -0400 (0:00:00.554) 0:00:22.673 ***** META: end_host conditional evaluated to False, continuing execution for managed-node1 skipping: [managed-node1] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node1" } MSG: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [Flush handlers] ********************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:29 Saturday 02 November 2024 08:51:38 -0400 (0:00:00.005) 0:00:22.679 ***** META: triggered running handlers for managed-node1 TASK [Clone kernel to Clone1] ************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:32 Saturday 02 November 2024 08:51:38 -0400 (0:00:00.002) 0:00:22.681 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml for managed-node1 TASK [Set fact with the default kernel to use for clones] ********************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:3 Saturday 02 November 2024 08:51:38 -0400 (0:00:00.025) 0:00:22.707 ***** ok: [managed-node1] => { "ansible_facts": { "test_kernel": { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:7 Saturday 02 November 2024 08:51:38 -0400 (0:00:00.039) 0:00:22.746 ***** changed: [managed-node1] => (item={'src': '/boot/vmlinuz-5.14.0-522.el9.x86_64', 'dest': '/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "e57cf6919044f549ebc999771ffa387146fd5c78", "dest": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1", "src": "/boot/vmlinuz-5.14.0-522.el9.x86_64" }, "md5sum": "3b9fdd725cbffe4f59f27590c8b8aa37", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 14571560, "src": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "state": "file", "uid": 0 } changed: [managed-node1] => (item={'src': '/boot/initramfs-5.14.0-522.el9.x86_64.img', 'dest': '/boot/initramfs-5.14.0-522.el9.x86_64.img_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "a51684a5274638fe52254904b8ec268b3263007d", "dest": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone1", "src": "/boot/initramfs-5.14.0-522.el9.x86_64.img" }, "md5sum": "1a530b49acb74e03ea0ada5368a9aa43", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 35526503, "src": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone1] **************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:21 Saturday 02 November 2024 08:51:39 -0400 (0:00:01.145) 0:00:23.892 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.046) 0:00:23.938 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.022) 0:00:23.961 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.036) 0:00:23.998 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.017) 0:00:24.015 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.017) 0:00:24.033 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.043) 0:00:24.076 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:51:39 -0400 (0:00:00.012) 0:00:24.088 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:51:41 -0400 (0:00:01.294) 0:00:25.382 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551894.7541194, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3533df6d61119d3dbd6959a265d5a35134a0f8cc", "ctime": 1730280251.5010514, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8528262, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730280251.5000515, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 338, "uid": 0, "version": "2434721543", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:51:41 -0400 (0:00:00.379) 0:00:25.762 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:51:41 -0400 (0:00:00.025) 0:00:25.788 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:51:41 -0400 (0:00:00.030) 0:00:25.819 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:51:41 -0400 (0:00:00.397) 0:00:26.216 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:51:41 -0400 (0:00:00.042) 0:00:26.259 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551894.7541194, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3533df6d61119d3dbd6959a265d5a35134a0f8cc", "ctime": 1730280251.5010514, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8528262, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730280251.5000515, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 338, "uid": 0, "version": "2434721543", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:51:42 -0400 (0:00:00.357) 0:00:26.617 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551897.1317081, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:51:42 -0400 (0:00:00.370) 0:00:26.987 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.004572", "end": "2024-11-02 08:51:42.954235", "rc": 0, "start": "2024-11-02 08:51:42.949663" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:51:43 -0400 (0:00:00.386) 0:00:27.373 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:51:43 -0400 (0:00:00.059) 0:00:27.433 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:51:43 -0400 (0:00:00.390) 0:00:27.823 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:51:43 -0400 (0:00:00.368) 0:00:28.191 ***** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [managed-node1] => { "actions": [ "grubby --initrd=/boot/initramfs-5.14.0-522.el9.x86_64.img_clone1 --add-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1 --title=Clone1 --args=test=kernel --copy-default" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.565) 0:00:28.757 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.020) 0:00:28.778 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.020) 0:00:28.799 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.035) 0:00:28.834 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers] ********************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:36 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.039) 0:00:28.874 ***** NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for managed-node1 NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for managed-node1 META: triggered running handlers for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.004) 0:00:28.878 ***** changed: [managed-node1] => { "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.135270", "end": "2024-11-02 08:51:44.950744", "rc": 0, "start": "2024-11-02 08:51:44.815474" } STDOUT: args="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Saturday 02 November 2024 08:51:44 -0400 (0:00:00.477) 0:00:29.355 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Saturday 02 November 2024 08:51:45 -0400 (0:00:00.027) 0:00:29.383 ***** changed: [managed-node1] => { "changed": true, "elapsed": 29, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Saturday 02 November 2024 08:52:16 -0400 (0:00:31.070) 0:01:00.454 ***** skipping: [managed-node1] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.013) 0:01:00.467 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is not set to true] ******************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:39 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.016) 0:01:00.483 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:43 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.015) 0:01:00.499 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.062) 0:01:00.561 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.019) 0:01:00.581 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.034) 0:01:00.615 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.017) 0:01:00.632 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.018) 0:01:00.650 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.030) 0:01:00.681 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:52:16 -0400 (0:00:00.012) 0:01:00.694 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:52:18 -0400 (0:00:02.586) 0:01:03.281 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:52:19 -0400 (0:00:00.371) 0:01:03.653 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:52:19 -0400 (0:00:00.014) 0:01:03.667 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:52:19 -0400 (0:00:00.014) 0:01:03.681 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:52:19 -0400 (0:00:00.329) 0:01:04.011 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:52:19 -0400 (0:00:00.041) 0:01:04.053 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:52:20 -0400 (0:00:00.349) 0:01:04.402 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551902.5651355, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:52:20 -0400 (0:00:00.353) 0:01:04.755 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.004991", "end": "2024-11-02 08:52:20.692138", "rc": 0, "start": "2024-11-02 08:52:20.687147" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:52:20 -0400 (0:00:00.353) 0:01:05.108 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:52:20 -0400 (0:00:00.035) 0:01:05.143 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.353) 0:01:05.497 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.346) 0:01:05.844 ***** ok: [managed-node1] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.327) 0:01:06.171 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.019) 0:01:06.190 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.016) 0:01:06.207 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:52:21 -0400 (0:00:00.029) 0:01:06.237 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": false, "id": "3a13afcd92654f5cb73fd5e426319cf2-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-3a13afcd92654f5cb73fd5e426319cf2.img", "kernel": "/boot/vmlinuz-0-rescue-3a13afcd92654f5cb73fd5e426319cf2", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (0-rescue-3a13afcd92654f5cb73fd5e426319cf2) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8 test=kernel", "default": false, "id": "1a8861e45aa642959a29938e6229f12b-5.14.0-522.el9.x86_64_clone1", "index": "2", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone1", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "Clone1" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:38 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.495) 0:01:06.732 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Remove Clone1 kernel with 3 kernel keys] ********************************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:47 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.042) 0:01:06.774 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.055) 0:01:06.829 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.018) 0:01:06.847 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.034) 0:01:06.882 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.018) 0:01:06.901 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.018) 0:01:06.919 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.031) 0:01:06.951 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:52:22 -0400 (0:00:00.012) 0:01:06.963 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:52:23 -0400 (0:00:01.225) 0:01:08.189 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.342) 0:01:08.532 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.014) 0:01:08.546 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.012) 0:01:08.559 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.324) 0:01:08.883 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.043) 0:01:08.926 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:52:24 -0400 (0:00:00.338) 0:01:09.265 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551902.5651355, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:52:25 -0400 (0:00:00.339) 0:01:09.604 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.004645", "end": "2024-11-02 08:52:25.550496", "rc": 0, "start": "2024-11-02 08:52:25.545851" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:52:25 -0400 (0:00:00.347) 0:01:09.952 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:52:25 -0400 (0:00:00.037) 0:01:09.989 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:52:25 -0400 (0:00:00.350) 0:01:10.339 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:52:26 -0400 (0:00:00.350) 0:01:10.689 ***** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [managed-node1] => { "actions": [ "grubby --remove-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:52:26 -0400 (0:00:00.575) 0:01:11.265 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:52:26 -0400 (0:00:00.019) 0:01:11.285 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:52:26 -0400 (0:00:00.017) 0:01:11.303 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:52:26 -0400 (0:00:00.030) 0:01:11.334 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": false, "id": "3a13afcd92654f5cb73fd5e426319cf2-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-3a13afcd92654f5cb73fd5e426319cf2.img", "kernel": "/boot/vmlinuz-0-rescue-3a13afcd92654f5cb73fd5e426319cf2", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (0-rescue-3a13afcd92654f5cb73fd5e426319cf2) 9" } ] }, "changed": false } TASK [Verify that Clone1 kernel is removed] ************************************ task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:64 Saturday 02 November 2024 08:52:27 -0400 (0:00:00.448) 0:01:11.782 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Clone kernel to Clone2] ************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:68 Saturday 02 November 2024 08:52:27 -0400 (0:00:00.040) 0:01:11.823 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml for managed-node1 TASK [Set fact with the default kernel to use for clones] ********************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:3 Saturday 02 November 2024 08:52:27 -0400 (0:00:00.032) 0:01:11.856 ***** ok: [managed-node1] => { "ansible_facts": { "test_kernel": { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:7 Saturday 02 November 2024 08:52:27 -0400 (0:00:00.040) 0:01:11.896 ***** changed: [managed-node1] => (item={'src': '/boot/vmlinuz-5.14.0-522.el9.x86_64', 'dest': '/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "e57cf6919044f549ebc999771ffa387146fd5c78", "dest": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2", "src": "/boot/vmlinuz-5.14.0-522.el9.x86_64" }, "md5sum": "3b9fdd725cbffe4f59f27590c8b8aa37", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 14571560, "src": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "state": "file", "uid": 0 } changed: [managed-node1] => (item={'src': '/boot/initramfs-5.14.0-522.el9.x86_64.img', 'dest': '/boot/initramfs-5.14.0-522.el9.x86_64.img_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "a51684a5274638fe52254904b8ec268b3263007d", "dest": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone2", "src": "/boot/initramfs-5.14.0-522.el9.x86_64.img" }, "md5sum": "1a530b49acb74e03ea0ada5368a9aa43", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 35526503, "src": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone2] **************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:21 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.918) 0:01:12.814 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.038) 0:01:12.852 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.018) 0:01:12.871 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.036) 0:01:12.908 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.018) 0:01:12.926 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.016) 0:01:12.943 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.031) 0:01:12.975 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:52:28 -0400 (0:00:00.013) 0:01:12.988 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:52:29 -0400 (0:00:01.227) 0:01:14.216 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.342) 0:01:14.558 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.018) 0:01:14.577 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.013) 0:01:14.591 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.321) 0:01:14.913 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.042) 0:01:14.955 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551904.9501402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551904.94914, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4521571, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551904.94914, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1394649122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:52:30 -0400 (0:00:00.340) 0:01:15.296 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551902.5651355, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:52:31 -0400 (0:00:00.344) 0:01:15.640 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.005173", "end": "2024-11-02 08:52:31.591428", "rc": 0, "start": "2024-11-02 08:52:31.586255" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:52:31 -0400 (0:00:00.353) 0:01:15.994 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:52:31 -0400 (0:00:00.035) 0:01:16.029 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:52:32 -0400 (0:00:00.351) 0:01:16.381 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:52:32 -0400 (0:00:00.357) 0:01:16.738 ***** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [managed-node1] => { "actions": [ "grubby --initrd=/boot/initramfs-5.14.0-522.el9.x86_64.img_clone2 --add-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2 --title=Clone2 --args=test=kernel" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:52:32 -0400 (0:00:00.562) 0:01:17.301 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:52:32 -0400 (0:00:00.020) 0:01:17.321 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:52:32 -0400 (0:00:00.018) 0:01:17.340 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:52:33 -0400 (0:00:00.031) 0:01:17.371 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers] ********************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:36 Saturday 02 November 2024 08:52:33 -0400 (0:00:00.031) 0:01:17.403 ***** NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for managed-node1 NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for managed-node1 META: triggered running handlers for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Saturday 02 November 2024 08:52:33 -0400 (0:00:00.003) 0:01:17.406 ***** changed: [managed-node1] => { "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.134966", "end": "2024-11-02 08:52:33.471694", "rc": 0, "start": "2024-11-02 08:52:33.336728" } STDOUT: args="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Saturday 02 November 2024 08:52:33 -0400 (0:00:00.476) 0:01:17.883 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Saturday 02 November 2024 08:52:33 -0400 (0:00:00.024) 0:01:17.908 ***** changed: [managed-node1] => { "changed": true, "elapsed": 23, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Saturday 02 November 2024 08:52:57 -0400 (0:00:24.168) 0:01:42.076 ***** skipping: [managed-node1] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.013) 0:01:42.090 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is not set to true] ******************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:39 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.016) 0:01:42.107 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:43 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.016) 0:01:42.123 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.056) 0:01:42.180 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.018) 0:01:42.199 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.035) 0:01:42.234 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.018) 0:01:42.252 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.017) 0:01:42.270 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.032) 0:01:42.303 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:52:57 -0400 (0:00:00.013) 0:01:42.316 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:53:00 -0400 (0:00:02.646) 0:01:44.963 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551953.4699836, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551953.4699836, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4411960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551953.4699836, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1997151676", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:53:00 -0400 (0:00:00.375) 0:01:45.338 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:53:00 -0400 (0:00:00.015) 0:01:45.354 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:53:01 -0400 (0:00:00.013) 0:01:45.367 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:53:01 -0400 (0:00:00.333) 0:01:45.700 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:53:01 -0400 (0:00:00.042) 0:01:45.743 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551980.4115427, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551953.4699836, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4411960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551953.4699836, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1997151676", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:53:01 -0400 (0:00:00.349) 0:01:46.092 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551902.5651355, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:53:02 -0400 (0:00:00.355) 0:01:46.448 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.005510", "end": "2024-11-02 08:53:02.055342", "rc": 0, "start": "2024-11-02 08:53:02.049832" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:53:02 -0400 (0:00:00.368) 0:01:46.816 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:53:02 -0400 (0:00:00.036) 0:01:46.853 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:53:02 -0400 (0:00:00.357) 0:01:47.211 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:53:03 -0400 (0:00:00.355) 0:01:47.566 ***** ok: [managed-node1] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:53:03 -0400 (0:00:00.336) 0:01:47.903 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:53:03 -0400 (0:00:00.022) 0:01:47.926 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:53:03 -0400 (0:00:00.017) 0:01:47.943 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:53:03 -0400 (0:00:00.030) 0:01:47.974 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": false, "id": "3a13afcd92654f5cb73fd5e426319cf2-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-3a13afcd92654f5cb73fd5e426319cf2.img", "kernel": "/boot/vmlinuz-0-rescue-3a13afcd92654f5cb73fd5e426319cf2", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (0-rescue-3a13afcd92654f5cb73fd5e426319cf2) 9" }, { "args": "test=kernel", "default": false, "id": "1a8861e45aa642959a29938e6229f12b-5.14.0-522.el9.x86_64_clone2", "index": "2", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img_clone2", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2", "title": "Clone2" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:74 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.496) 0:01:48.470 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Remove Clone2 kernel with kernel path] *********************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:81 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.041) 0:01:48.511 ***** included: fedora.linux_system_roles.bootloader for managed-node1 TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.071) 0:01:48.583 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.018) 0:01:48.602 ***** skipping: [managed-node1] => { "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 : Check if system is ostree] ******** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.035) 0:01:48.637 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.017) 0:01:48.655 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.017) 0:01:48.672 ***** skipping: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => (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: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.031) 0:01:48.704 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 02 November 2024 08:53:04 -0400 (0:00:00.012) 0:01:48.716 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: grubby TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 02 November 2024 08:53:05 -0400 (0:00:01.243) 0:01:49.960 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551980.4115427, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551953.4699836, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4411960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551953.4699836, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1997151676", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 02 November 2024 08:53:05 -0400 (0:00:00.349) 0:01:50.310 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 02 November 2024 08:53:05 -0400 (0:00:00.014) 0:01:50.324 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 02 November 2024 08:53:05 -0400 (0:00:00.013) 0:01:50.338 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 02 November 2024 08:53:06 -0400 (0:00:00.332) 0:01:50.671 ***** ok: [managed-node1] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 02 November 2024 08:53:06 -0400 (0:00:00.044) 0:01:50.715 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551980.4115427, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "85bc4f2262ab0ff568e6ddea6fe3e99fa79222b2", "ctime": 1730551953.4699836, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4411960, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1730551953.4699836, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 341, "uid": 0, "version": "1997151676", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 02 November 2024 08:53:06 -0400 (0:00:00.348) 0:01:51.064 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1730551902.5651355, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7f7555db45856c1f13792c710c64ca3bb90c7fdb", "ctime": 1730551897.1311245, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 239075524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730551897.1317089, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "4114193566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 02 November 2024 08:53:07 -0400 (0:00:00.352) 0:01:51.417 ***** ok: [managed-node1] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.004737", "end": "2024-11-02 08:53:07.372362", "rc": 0, "start": "2024-11-02 08:53:07.367625" } TASK [fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 02 November 2024 08:53:07 -0400 (0:00:00.360) 0:01:51.777 ***** skipping: [managed-node1] => { "changed": false, "false_condition": "__bootloader_grep_configfile.stdout | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 02 November 2024 08:53:07 -0400 (0:00:00.040) 0:01:51.817 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 02 November 2024 08:53:07 -0400 (0:00:00.359) 0:01:52.177 ***** ok: [managed-node1] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 02 November 2024 08:53:08 -0400 (0:00:00.355) 0:01:52.532 ***** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [managed-node1] => { "actions": [ "grubby --remove-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 02 November 2024 08:53:08 -0400 (0:00:00.560) 0:01:53.093 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 02 November 2024 08:53:08 -0400 (0:00:00.019) 0:01:53.113 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 02 November 2024 08:53:08 -0400 (0:00:00.017) 0:01:53.130 ***** skipping: [managed-node1] => { "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: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 02 November 2024 08:53:08 -0400 (0:00:00.031) 0:01:53.161 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": true, "id": "3a13afcd92654f5cb73fd5e426319cf2-5.14.0-522.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-522.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-522.el9.x86_64", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (5.14.0-522.el9.x86_64) 9" }, { "args": "ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8", "default": false, "id": "3a13afcd92654f5cb73fd5e426319cf2-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-3a13afcd92654f5cb73fd5e426319cf2.img", "kernel": "/boot/vmlinuz-0-rescue-3a13afcd92654f5cb73fd5e426319cf2", "root": "UUID=d6f52a16-d77d-4c0d-9841-76b856654401", "title": "CentOS Stream (0-rescue-3a13afcd92654f5cb73fd5e426319cf2) 9" } ] }, "changed": false } TASK [Verify that Clone2 kernel is removed] ************************************ task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:91 Saturday 02 November 2024 08:53:09 -0400 (0:00:00.455) 0:01:53.617 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Remove cloned kernels] *************************************************** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:95 Saturday 02 November 2024 08:53:09 -0400 (0:00:00.042) 0:01:53.659 ***** changed: [managed-node1] => (item=1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "grubby", "--remove-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone1" ], "delta": "0:00:00.045928", "end": "2024-11-02 08:53:09.636099", "failed_when_result": false, "item": 1, "rc": 1, "start": "2024-11-02 08:53:09.590171" } STDERR: The param /boot/vmlinuz-5.14.0-522.el9.x86_64_clone1 is incorrect MSG: non-zero return code changed: [managed-node1] => (item=2) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "grubby", "--remove-kernel=/boot/vmlinuz-5.14.0-522.el9.x86_64_clone2" ], "delta": "0:00:00.045574", "end": "2024-11-02 08:53:10.000330", "failed_when_result": false, "item": 2, "rc": 1, "start": "2024-11-02 08:53:09.954756" } STDERR: The param /boot/vmlinuz-5.14.0-522.el9.x86_64_clone2 is incorrect MSG: non-zero return code NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for managed-node1 NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Saturday 02 November 2024 08:53:10 -0400 (0:00:00.747) 0:01:54.406 ***** changed: [managed-node1] => { "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.108209", "end": "2024-11-02 08:53:10.444074", "rc": 0, "start": "2024-11-02 08:53:10.335865" } STDOUT: args="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console serial" GRUB_CMDLINE_LINUX="ro rhgb crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Saturday 02 November 2024 08:53:10 -0400 (0:00:00.441) 0:01:54.848 ***** included: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Saturday 02 November 2024 08:53:10 -0400 (0:00:00.016) 0:01:54.864 ***** changed: [managed-node1] => { "changed": true, "elapsed": 22, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Saturday 02 November 2024 08:53:34 -0400 (0:00:23.661) 0:02:18.525 ***** skipping: [managed-node1] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Saturday 02 November 2024 08:53:34 -0400 (0:00:00.014) 0:02:18.540 ***** ok: [managed-node1] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } PLAY RECAP ********************************************************************* managed-node1 : ok=118 changed=14 unreachable=0 failed=0 skipped=80 rescued=0 ignored=0 Saturday 02 November 2024 08:53:34 -0400 (0:00:00.017) 0:02:18.558 ***** =============================================================================== fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 31.07s /tmp/collections-n2G/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 -- 24.17s /tmp/collections-n2G/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 -- 23.66s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Ensure required packages are installed -- 16.05s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.65s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.59s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Gather architecture facts ----------------------------------------------- 2.16s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:3 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.29s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.24s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.23s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.23s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Clone test_kernel kernel and initrd for test purposes ------------------- 1.15s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:7 Clone test_kernel kernel and initrd for test purposes ------------------- 0.92s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/clone_kernel.yml:7 Remove cloned kernels --------------------------------------------------- 0.75s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_add_rm.yml:95 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.58s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.57s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.56s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.56s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.55s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.50s /tmp/collections-n2G/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139