ansible-playbook [core 2.16.13] 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-Hy4 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/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_default.yml **************************************************** 1 plays in /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Skip on s390x architecture] ********************************************** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_default.yml:7 Saturday 23 November 2024 07:51:13 -0500 (0:00:00.029) 0:00:00.029 ***** included: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml for managed-node2 TASK [Gather architecture facts] *********************************************** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:3 Saturday 23 November 2024 07:51:13 -0500 (0:00:00.012) 0:00:00.041 ***** ok: [managed-node2] TASK [End host on s390x architecture] ****************************************** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:8 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.897) 0:00:00.939 ***** META: end_host conditional evaluated to False, continuing execution for managed-node2 skipping: [managed-node2] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node2" } MSG: end_host conditional evaluated to false, continuing execution for managed-node2 TASK [Run with default parameters] ********************************************* task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_default.yml:10 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.004) 0:00:00.943 ***** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.034) 0:00:00.978 ***** included: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.029) 0:00:01.007 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.029) 0:00:01.037 ***** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.401) 0:00:01.439 ***** ok: [managed-node2] => { "ansible_facts": { "__bootloader_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.020) 0:00:01.459 ***** skipping: [managed-node2] => (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-node2] => (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-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.026) 0:00:01.486 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Saturday 23 November 2024 07:51:14 -0500 (0:00:00.011) 0:00:01.498 ***** ok: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Saturday 23 November 2024 07:51:28 -0500 (0:00:14.266) 0:00:15.765 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1716968862.497, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1716968862.287, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6882912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1716968862.287, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1394307174", "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.333) 0:00:16.099 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.012) 0:00:16.111 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.010) 0:00:16.122 ***** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.324) 0:00:16.447 ***** ok: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.038) 0:00:16.485 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1732366289.1051438, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1716968862.287, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6882912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1716968862.287, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1394307174", "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Saturday 23 November 2024 07:51:29 -0500 (0:00:00.332) 0:00:16.817 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1716968863.313, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "33f81baef485d229f360bb8edb243c84b5829854", "ctime": 1716968863.314, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 998159, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1716968863.314, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6406, "uid": 0, "version": "4098057869", "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Saturday 23 November 2024 07:51:30 -0500 (0:00:00.333) 0:00:17.151 ***** ok: [managed-node2] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.003807", "end": "2024-11-23 07:51:30.599779", "rc": 0, "start": "2024-11-23 07:51:30.595972" } 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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Saturday 23 November 2024 07:51:30 -0500 (0:00:00.434) 0:00:17.586 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Saturday 23 November 2024 07:51:30 -0500 (0:00:00.049) 0:00:17.635 ***** ok: [managed-node2] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Saturday 23 November 2024 07:51:31 -0500 (0:00:00.442) 0:00:18.078 ***** changed: [managed-node2] => { "changed": true, "rc": 0 } MSG: 5 replacements made TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Saturday 23 November 2024 07:51:31 -0500 (0:00:00.341) 0:00:18.420 ***** ok: [managed-node2] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Saturday 23 November 2024 07:51:31 -0500 (0:00:00.453) 0:00:18.873 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Saturday 23 November 2024 07:51:31 -0500 (0:00:00.027) 0:00:18.900 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Saturday 23 November 2024 07:51:31 -0500 (0:00:00.024) 0:00:18.925 ***** skipping: [managed-node2] => { "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-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Saturday 23 November 2024 07:51:32 -0500 (0:00:00.045) 0:00:18.970 ***** skipping: [managed-node2] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node2 : ok=15 changed=1 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 Saturday 23 November 2024 07:51:32 -0500 (0:00:00.044) 0:00:19.014 ***** =============================================================================== fedora.linux_system_roles.bootloader : Ensure required packages are installed -- 14.27s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Gather architecture facts ----------------------------------------------- 0.90s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tasks/skip_on_s390x.yml:3 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.45s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub --- 0.44s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 fedora.linux_system_roles.bootloader : Verify if there is a stab config in /boot/grub2/grub.cfg --- 0.43s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 fedora.linux_system_roles.bootloader : Check if system is ostree -------- 0.40s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg --- 0.34s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub ---- 0.33s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg --- 0.33s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub ---- 0.33s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 fedora.linux_system_roles.bootloader : Determine platform type ---------- 0.32s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 fedora.linux_system_roles.bootloader : Use a general grub and user conf path if UEFI path has a stub config --- 0.05s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 fedora.linux_system_roles.bootloader : Remove boot loader password configuration --- 0.05s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.04s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 fedora.linux_system_roles.bootloader : Set boot loader configuration files --- 0.04s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Run with default parameters --------------------------------------------- 0.03s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/tests/bootloader/tests_default.yml:10 fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.03s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 fedora.linux_system_roles.bootloader : Set platform/version specific variables --- 0.03s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 fedora.linux_system_roles.bootloader : Generate boot loader password ---- 0.03s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 fedora.linux_system_roles.bootloader : Set platform/version specific variables --- 0.03s /tmp/collections-Hy4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20