ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_all_transitions.yml ******************************************** 1 plays in /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Friday 30 May 2025 10:37:58 -0400 (0:00:00.019) 0:00:00.019 ************ ok: [managed-node2] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 Friday 30 May 2025 10:37:59 -0400 (0:00:01.087) 0:00:01.107 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } META: end_host conditional evaluated to false, continuing execution for managed-node2 TASK [Ensure ansible_facts used by tests] ************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Friday 30 May 2025 10:38:00 -0400 (0:00:00.469) 0:00:01.577 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Friday 30 May 2025 10:38:00 -0400 (0:00:00.016) 0:00:01.593 ************ TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 10:38:00 -0400 (0:00:00.051) 0:00:01.644 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 10:38:00 -0400 (0:00:00.332) 0:00:01.977 ************ ok: [managed-node2] => { "ansible_facts": { "__selinux_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 10:38:00 -0400 (0:00:00.018) 0:00:01.996 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 10:38:01 -0400 (0:00:00.335) 0:00:02.332 ************ ok: [managed-node2] => { "ansible_facts": { "__selinux_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 10:38:01 -0400 (0:00:00.020) 0:00:02.352 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 10:38:01 -0400 (0:00:00.015) 0:00:02.367 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 10:38:16 -0400 (0:00:14.798) 0:00:17.166 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 10:38:16 -0400 (0:00:00.016) 0:00:17.183 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 10:38:18 -0400 (0:00:02.878) 0:00:20.061 ************ changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: policycoreutils-python-utils-2.9-26.el8.noarch" ] } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 10:38:22 -0400 (0:00:03.629) 0:00:23.691 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 10:38:22 -0400 (0:00:00.016) 0:00:23.707 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 10:38:22 -0400 (0:00:00.015) 0:00:23.723 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 10:38:22 -0400 (0:00:00.015) 0:00:23.738 ************ ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Friday 30 May 2025 10:38:23 -0400 (0:00:00.649) 0:00:24.387 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Friday 30 May 2025 10:38:23 -0400 (0:00:00.014) 0:00:24.402 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Friday 30 May 2025 10:38:23 -0400 (0:00:00.014) 0:00:24.417 ************ ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Friday 30 May 2025 10:38:23 -0400 (0:00:00.019) 0:00:24.436 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.629532", "end": "2025-05-30 10:38:24.342903", "rc": 0, "start": "2025-05-30 10:38:23.713371" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Friday 30 May 2025 10:38:24 -0400 (0:00:01.065) 0:00:25.502 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.527346", "end": "2025-05-30 10:38:25.207537", "rc": 0, "start": "2025-05-30 10:38:24.680191" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Friday 30 May 2025 10:38:25 -0400 (0:00:00.864) 0:00:26.367 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.558399", "end": "2025-05-30 10:38:26.107490", "rc": 0, "start": "2025-05-30 10:38:25.549091" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Friday 30 May 2025 10:38:26 -0400 (0:00:00.899) 0:00:27.266 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.541203", "end": "2025-05-30 10:38:26.988745", "rc": 0, "start": "2025-05-30 10:38:26.447542" } TASK [Save config] ************************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:29 Friday 30 May 2025 10:38:27 -0400 (0:00:00.880) 0:00:28.147 ************ included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml for managed-node2 TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Friday 30 May 2025 10:38:27 -0400 (0:00:00.020) 0:00:28.167 ************ changed: [managed-node2] => { "changed": true, "checksum": "61a40e1faa78b234462d16dffbdb3fb869442406", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "eab350e0c5241d4394c2099bf86e9312", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 548, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Get selinux facts] ******************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 Friday 30 May 2025 10:38:27 -0400 (0:00:00.452) 0:00:28.619 ************ ok: [managed-node2] TASK [Save selinux state before test] ****************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:36 Friday 30 May 2025 10:38:28 -0400 (0:00:00.601) 0:00:29.221 ************ ok: [managed-node2] => { "ansible_facts": { "__state_before": "enforcing", "__type_before": "targeted" }, "changed": false } TASK [See if we can use update_kernel_param] *********************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:41 Friday 30 May 2025 10:38:28 -0400 (0:00:00.017) 0:00:29.238 ************ ok: [managed-node2] => { "ansible_facts": { "__test_update_kernel_param": false }, "changed": false } TASK [Disable selinux and set kernel] ****************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:45 Friday 30 May 2025 10:38:28 -0400 (0:00:00.018) 0:00:29.257 ************ [WARNING]: SELinux state temporarily changed from 'enforcing' to 'permissive'. State change will take effect next reboot. changed: [managed-node2] => { "changed": true, "configfile": "/etc/selinux/config", "policy": "targeted", "reboot_required": true, "state": "disabled" } MSG: Config SELinux state changed from 'enforcing' to 'disabled' TASK [Add selinux=0 to kernel args] ******************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:51 Friday 30 May 2025 10:38:28 -0400 (0:00:00.660) 0:00:29.917 ************ TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 30 May 2025 10:38:28 -0400 (0:00:00.053) 0:00:29.970 ************ included: /tmp/collections-qt4/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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 30 May 2025 10:38:28 -0400 (0:00:00.021) 0:00:29.991 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 30 May 2025 10:38:28 -0400 (0:00:00.016) 0:00:30.008 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 30 May 2025 10:38:29 -0400 (0:00:00.340) 0:00:30.348 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 30 May 2025 10:38:29 -0400 (0:00:00.020) 0:00:30.368 ************ skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 30 May 2025 10:38:29 -0400 (0:00:00.034) 0:00:30.403 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 30 May 2025 10:38:29 -0400 (0:00:00.015) 0:00:30.418 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 30 May 2025 10:38:32 -0400 (0:00:02.865) 0:00:33.284 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 30 May 2025 10:38:32 -0400 (0:00:00.349) 0:00:33.633 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 30 May 2025 10:38:32 -0400 (0:00:00.025) 0:00:33.659 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 30 May 2025 10:38:32 -0400 (0:00:00.022) 0:00:33.682 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 30 May 2025 10:38:32 -0400 (0:00:00.341) 0:00:34.023 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 30 May 2025 10:38:32 -0400 (0:00:00.026) 0:00:34.050 ************ ok: [managed-node2] => { "changed": false, "stat": { "atime": 1748615912.4556012, "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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 30 May 2025 10:38:33 -0400 (0:00:00.342) 0:00:34.392 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Friday 30 May 2025 10:38:33 -0400 (0:00:00.347) 0:00:34.739 ************ ok: [managed-node2] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.004053", "end": "2025-05-30 10:38:33.922372", "rc": 0, "start": "2025-05-30 10:38:33.918319" } 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Friday 30 May 2025 10:38:33 -0400 (0:00:00.341) 0:00:35.081 ************ skipping: [managed-node2] => { "changed": false, "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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Friday 30 May 2025 10:38:34 -0400 (0:00:00.064) 0:00:35.146 ************ ok: [managed-node2] => { "changed": false } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Friday 30 May 2025 10:38:34 -0400 (0:00:00.412) 0:00:35.558 ************ changed: [managed-node2] => { "changed": true } MSG: 5 replacements made TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 30 May 2025 10:38:34 -0400 (0:00:00.333) 0:00:35.892 ************ NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for managed-node2 NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for managed-node2 changed: [managed-node2] => { "actions": [ "grubby --update-kernel=ALL --args=selinux=0" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Friday 30 May 2025 10:38:35 -0400 (0:00:00.722) 0:00:36.615 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Friday 30 May 2025 10:38:35 -0400 (0:00:00.024) 0:00:36.640 ************ 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-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Friday 30 May 2025 10:38:35 -0400 (0:00:00.023) 0:00:36.663 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Friday 30 May 2025 10:38:35 -0400 (0:00:00.015) 0:00:36.678 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show __disable_result] *************************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:65 Friday 30 May 2025 10:38:35 -0400 (0:00:00.019) 0:00:36.697 ************ ok: [managed-node2] => {} MSG: __disable_result is { "changed": true, "configfile": "/etc/selinux/config", "failed": false, "msg": "Config SELinux state changed from 'enforcing' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled", "warnings": [ "SELinux state temporarily changed from 'enforcing' to 'permissive'. State change will take effect next reboot." ] } TASK [Reboot] ****************************************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:69 Friday 30 May 2025 10:38:35 -0400 (0:00:00.015) 0:00:36.713 ************ changed: [managed-node2] => { "changed": true, "elapsed": 22, "rebooted": true } TASK [Test all the possible state transitions] ********************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:73 Friday 30 May 2025 10:38:59 -0400 (0:00:23.715) 0:01:00.429 ************ included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 TASK [Display transition name] ************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:2 Friday 30 May 2025 10:38:59 -0400 (0:00:00.117) 0:01:00.546 ************ ok: [managed-node2] => {} MSG: testing transition permissive -> permissive TASK [Setup the initial state] ************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:6 Friday 30 May 2025 10:38:59 -0400 (0:00:00.018) 0:01:00.565 ************ included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml for managed-node2 TASK [Call SELinux role] ******************************************************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:4 Friday 30 May 2025 10:38:59 -0400 (0:00:00.020) 0:01:00.586 ************ TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Friday 30 May 2025 10:38:59 -0400 (0:00:00.039) 0:01:00.626 ************ included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node2 TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Friday 30 May 2025 10:38:59 -0400 (0:00:00.019) 0:01:00.645 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Friday 30 May 2025 10:38:59 -0400 (0:00:00.017) 0:01:00.662 ************ included: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node2 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 10:38:59 -0400 (0:00:00.029) 0:01:00.692 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 10:38:59 -0400 (0:00:00.016) 0:01:00.708 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 10:38:59 -0400 (0:00:00.015) 0:01:00.724 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 10:38:59 -0400 (0:00:00.015) 0:01:00.739 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 10:38:59 -0400 (0:00:00.015) 0:01:00.755 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 10:38:59 -0400 (0:00:00.015) 0:01:00.771 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 10:39:04 -0400 (0:00:04.860) 0:01:05.631 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 10:39:04 -0400 (0:00:00.018) 0:01:05.650 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 10:39:07 -0400 (0:00:02.856) 0:01:08.506 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 10:39:10 -0400 (0:00:02.847) 0:01:11.354 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 10:39:10 -0400 (0:00:00.024) 0:01:11.379 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 10:39:10 -0400 (0:00:00.023) 0:01:11.402 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 10:39:10 -0400 (0:00:00.027) 0:01:11.429 ************ ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 Friday 30 May 2025 10:39:10 -0400 (0:00:00.663) 0:01:12.093 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Friday 30 May 2025 10:39:10 -0400 (0:00:00.016) 0:01:12.110 ************ [DEPRECATION WARNING]: evaluating 'selinux_state' as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [managed-node2]: FAILED! => {} MSG: The conditional check 'selinux_state' failed. The error was: error while evaluating conditional (selinux_state): 'permissive' is undefined The error appears to be in '/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml': line 20, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Set permanent SELinux state if disabled ^ here TASK [Handle errors] *********************************************************** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:9 Friday 30 May 2025 10:39:11 -0400 (0:00:00.020) 0:01:12.130 ************ fatal: [managed-node2]: FAILED! => {} MSG: The conditional check 'not selinux_reboot_required' failed. The error was: error while evaluating conditional (not selinux_reboot_required): 'selinux_reboot_required' is undefined The error appears to be in '/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml': line 9, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # Fail if failed for a different reason than selinux_reboot_required. - name: Handle errors ^ here RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Friday 30 May 2025 10:39:11 -0400 (0:00:00.014) 0:01:12.144 ************ RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Friday 30 May 2025 10:39:11 -0400 (0:00:00.000) 0:01:12.144 ************ PLAY RECAP ********************************************************************* managed-node2 : ok=53 changed=6 unreachable=0 failed=1 skipped=29 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-05-30T14:39:11.016566+00:00Z", "host": "managed-node2", "message": "The conditional check 'selinux_state' failed. The error was: error while evaluating conditional (selinux_state): 'permissive' is undefined\n\nThe error appears to be in '/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml': line 20, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Set permanent SELinux state if disabled\n ^ here\n", "start_time": "2025-05-30T14:39:10.999976+00:00Z", "task_name": "Set permanent SELinux state if disabled", "task_path": "/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20" }, { "ansible_version": "2.9.27", "end_time": "2025-05-30T14:39:11.033931+00:00Z", "host": "managed-node2", "message": "The conditional check 'not selinux_reboot_required' failed. The error was: error while evaluating conditional (not selinux_reboot_required): 'selinux_reboot_required' is undefined\n\nThe error appears to be in '/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml': line 9, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # Fail if failed for a different reason than selinux_reboot_required.\n - name: Handle errors\n ^ here\n", "start_time": "2025-05-30T14:39:11.020392+00:00Z", "task_name": "Handle errors", "task_path": "/tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:9" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Friday 30 May 2025 10:39:11 -0400 (0:00:00.001) 0:01:12.146 ************ =============================================================================== Reboot ----------------------------------------------------------------- 23.72s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:69 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------ 14.80s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 4.86s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 3.63s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.88s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.87s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.86s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.85s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Gathering Facts --------------------------------------------------------- 1.09s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Get local modifications - boolean --------------------------------------- 1.07s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Get local modifications - login ----------------------------------------- 0.90s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - fcontext -------------------------------------- 0.88s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.86s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.72s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.66s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Disable selinux and set kernel ------------------------------------------ 0.66s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:45 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.65s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Get selinux facts ------------------------------------------------------- 0.60s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 Check if system is ostree ----------------------------------------------- 0.47s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 Backup original /etc/selinux/config ------------------------------------- 0.45s /tmp/collections-qt4/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2