ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-zOy/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-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Friday 30 May 2025 10:38:42 -0400 (0:00:00.040) 0:00:00.040 ************ ok: [managed-node2] META: ran handlers TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 Friday 30 May 2025 10:38:43 -0400 (0:00:01.142) 0:00:01.182 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Friday 30 May 2025 10:38:44 -0400 (0:00:00.468) 0:00:01.650 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Friday 30 May 2025 10:38:44 -0400 (0:00:00.033) 0:00:01.684 ************ TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 10:38:44 -0400 (0:00:00.122) 0:00:01.806 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 10:38:44 -0400 (0:00:00.306) 0:00:02.112 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 10:38:44 -0400 (0:00:00.039) 0:00:02.152 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 10:38:44 -0400 (0:00:00.281) 0:00:02.433 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 10:38:44 -0400 (0:00:00.026) 0:00:02.459 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-34.el7.x86_64 providing policycoreutils-python is already installed" ] } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 10:38:45 -0400 (0:00:00.781) 0:00:03.240 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 10:38:45 -0400 (0:00:00.020) 0:00:03.261 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 10:38:45 -0400 (0:00:00.023) 0:00:03.284 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 10:38:45 -0400 (0:00:00.026) 0:00:03.311 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 10:38:45 -0400 (0:00:00.022) 0:00:03.333 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 10:38:45 -0400 (0:00:00.021) 0:00:03.355 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 10:38:45 -0400 (0:00:00.029) 0:00:03.385 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 10:38:45 -0400 (0:00:00.020) 0:00:03.405 ************ ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Friday 30 May 2025 10:38:46 -0400 (0:00:00.480) 0:00:03.886 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Friday 30 May 2025 10:38:46 -0400 (0:00:00.020) 0:00:03.906 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Friday 30 May 2025 10:38:46 -0400 (0:00:00.020) 0:00:03.927 ************ ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Friday 30 May 2025 10:38:46 -0400 (0:00:00.029) 0:00:03.956 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.198965", "end": "2025-05-30 10:38:46.943416", "rc": 0, "start": "2025-05-30 10:38:46.744451" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Friday 30 May 2025 10:38:46 -0400 (0:00:00.556) 0:00:04.513 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.166189", "end": "2025-05-30 10:38:47.373019", "rc": 0, "start": "2025-05-30 10:38:47.206830" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Friday 30 May 2025 10:38:47 -0400 (0:00:00.426) 0:00:04.940 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.162977", "end": "2025-05-30 10:38:47.798113", "rc": 0, "start": "2025-05-30 10:38:47.635136" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Friday 30 May 2025 10:38:47 -0400 (0:00:00.427) 0:00:05.367 ************ ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.167860", "end": "2025-05-30 10:38:48.235368", "rc": 0, "start": "2025-05-30 10:38:48.067508" } TASK [Save config] ************************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:29 Friday 30 May 2025 10:38:48 -0400 (0:00:00.435) 0:00:05.803 ************ included: /tmp/collections-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Friday 30 May 2025 10:38:48 -0400 (0:00:00.032) 0:00:05.835 ************ changed: [managed-node2] => { "changed": true, "checksum": "fe4ed0aa93618472e1004b6f68ae1b0733485fc5", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "ff8d2663b88f1a20c8489fdf152e6b31", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 542, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Get selinux facts] ******************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 Friday 30 May 2025 10:38:48 -0400 (0:00:00.427) 0:00:06.263 ************ ok: [managed-node2] TASK [Save selinux state before test] ****************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:36 Friday 30 May 2025 10:38:49 -0400 (0:00:00.512) 0:00:06.775 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:41 Friday 30 May 2025 10:38:49 -0400 (0:00:00.028) 0:00:06.804 ************ ok: [managed-node2] => { "ansible_facts": { "__test_update_kernel_param": false }, "changed": false } TASK [Disable selinux and set kernel] ****************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:45 Friday 30 May 2025 10:38:49 -0400 (0:00:00.025) 0:00:06.830 ************ [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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:51 Friday 30 May 2025 10:38:49 -0400 (0:00:00.607) 0:00:07.437 ************ TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 30 May 2025 10:38:50 -0400 (0:00:00.128) 0:00:07.566 ************ included: /tmp/collections-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 30 May 2025 10:38:50 -0400 (0:00:00.037) 0:00:07.603 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 30 May 2025 10:38:50 -0400 (0:00:00.032) 0:00:07.636 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 30 May 2025 10:38:50 -0400 (0:00:00.269) 0:00:07.905 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 30 May 2025 10:38:50 -0400 (0:00:00.026) 0:00:07.932 ************ 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_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 30 May 2025 10:38:50 -0400 (0:00:00.049) 0:00:07.981 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 30 May 2025 10:38:50 -0400 (0:00:00.020) 0:00:08.002 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 30 May 2025 10:38:51 -0400 (0:00:00.627) 0:00:08.629 ************ ok: [managed-node2] => { "changed": false, "stat": { "atime": 1718881015.7736502, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8ab49c3273c7b6cc2f0f05364b562bad28973dd5", "ctime": 1718881011.4856503, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 144314, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1718881011.4826503, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 286, "uid": 0, "version": "22411331", "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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 30 May 2025 10:38:51 -0400 (0:00:00.332) 0:00:08.962 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 30 May 2025 10:38:51 -0400 (0:00:00.034) 0:00:08.997 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 30 May 2025 10:38:51 -0400 (0:00:00.041) 0:00:09.038 ************ ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 30 May 2025 10:38:51 -0400 (0:00:00.262) 0:00:09.301 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 30 May 2025 10:38:51 -0400 (0:00:00.032) 0:00:09.334 ************ ok: [managed-node2] => { "changed": false, "stat": { "atime": 1748615931.3666687, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8ab49c3273c7b6cc2f0f05364b562bad28973dd5", "ctime": 1718881011.4856503, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 144314, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1718881011.4826503, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 286, "uid": 0, "version": "22411331", "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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 30 May 2025 10:38:52 -0400 (0:00:00.270) 0:00:09.605 ************ ok: [managed-node2] => { "changed": false, "stat": { "atime": 1718880548.6646502, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "7d8dd2e2e9cc294b8a73fa9034b2304cde587a08", "ctime": 1718881171.2176502, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 134061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1718880548.6706502, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 5032, "uid": 0, "version": "22411319", "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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:73 Friday 30 May 2025 10:38:52 -0400 (0:00:00.280) 0:00:09.885 ************ ok: [managed-node2] => { "changed": false, "cmd": "grep \"configfile\" /boot/grub2/grub.cfg || true", "delta": "0:00:00.003902", "end": "2025-05-30 10:38:52.585685", "rc": 0, "start": "2025-05-30 10:38:52.581783" } 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:79 Friday 30 May 2025 10:38:52 -0400 (0:00:00.266) 0:00:10.151 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 Friday 30 May 2025 10:38:52 -0400 (0:00:00.025) 0:00:10.177 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:95 Friday 30 May 2025 10:38:53 -0400 (0:00:00.399) 0:00:10.576 ************ ok: [managed-node2] => { "changed": false } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 30 May 2025 10:38:53 -0400 (0:00:00.264) 0:00:10.840 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:112 Friday 30 May 2025 10:38:53 -0400 (0:00:00.436) 0:00:11.277 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:124 Friday 30 May 2025 10:38:53 -0400 (0:00:00.022) 0:00:11.299 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:132 Friday 30 May 2025 10:38:53 -0400 (0:00:00.021) 0:00:11.320 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:139 Friday 30 May 2025 10:38:53 -0400 (0:00:00.021) 0:00:11.342 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show __disable_result] *************************************************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:65 Friday 30 May 2025 10:38:53 -0400 (0:00:00.019) 0:00:11.361 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:69 Friday 30 May 2025 10:38:53 -0400 (0:00:00.031) 0:00:11.392 ************ changed: [managed-node2] => { "changed": true, "elapsed": 22, "rebooted": true } TASK [Test all the possible state transitions] ********************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:73 Friday 30 May 2025 10:39:16 -0400 (0:00:23.024) 0:00:34.416 ************ included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml for managed-node2 TASK [Display transition name] ************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:2 Friday 30 May 2025 10:39:17 -0400 (0:00:00.199) 0:00:34.616 ************ ok: [managed-node2] => {} MSG: testing transition permissive -> permissive TASK [Setup the initial state] ************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_test_transitions.yml:6 Friday 30 May 2025 10:39:17 -0400 (0:00:00.025) 0:00:34.642 ************ included: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml for managed-node2 TASK [Call SELinux role] ******************************************************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:4 Friday 30 May 2025 10:39:17 -0400 (0:00:00.032) 0:00:34.674 ************ TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Friday 30 May 2025 10:39:17 -0400 (0:00:00.066) 0:00:34.740 ************ included: /tmp/collections-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Friday 30 May 2025 10:39:17 -0400 (0:00:00.038) 0:00:34.779 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Friday 30 May 2025 10:39:17 -0400 (0:00:00.037) 0:00:34.816 ************ included: /tmp/collections-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Friday 30 May 2025 10:39:17 -0400 (0:00:00.068) 0:00:34.884 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Friday 30 May 2025 10:39:17 -0400 (0:00:00.030) 0:00:34.915 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Friday 30 May 2025 10:39:17 -0400 (0:00:00.028) 0:00:34.944 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Friday 30 May 2025 10:39:17 -0400 (0:00:00.022) 0:00:34.967 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Friday 30 May 2025 10:39:17 -0400 (0:00:00.029) 0:00:34.997 ************ ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-34.el7.x86_64 providing policycoreutils-python is already installed" ] } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Friday 30 May 2025 10:39:18 -0400 (0:00:00.805) 0:00:35.802 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Friday 30 May 2025 10:39:18 -0400 (0:00:00.047) 0:00:35.849 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Friday 30 May 2025 10:39:18 -0400 (0:00:00.032) 0:00:35.882 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Friday 30 May 2025 10:39:18 -0400 (0:00:00.055) 0:00:35.938 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Friday 30 May 2025 10:39:18 -0400 (0:00:00.037) 0:00:35.975 ************ skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Friday 30 May 2025 10:39:18 -0400 (0:00:00.038) 0:00:36.013 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Friday 30 May 2025 10:39:18 -0400 (0:00:00.038) 0:00:36.052 ************ skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Friday 30 May 2025 10:39:18 -0400 (0:00:00.038) 0:00:36.090 ************ ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 Friday 30 May 2025 10:39:19 -0400 (0:00:00.539) 0:00:36.630 ************ 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-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20 Friday 30 May 2025 10:39:19 -0400 (0:00:00.034) 0:00:36.664 ************ [DEPRECATION WARNING]: evaluating u'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-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_apply_reboot.yml:9 Friday 30 May 2025 10:39:19 -0400 (0:00:00.043) 0:00:36.708 ************ 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-zOy/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-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Friday 30 May 2025 10:39:19 -0400 (0:00:00.022) 0:00:36.731 ************ RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Friday 30 May 2025 10:39:19 -0400 (0:00:00.000) 0:00:36.732 ************ PLAY RECAP ********************************************************************* managed-node2 : ok=49 changed=4 unreachable=0 failed=1 skipped=33 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-05-30T14:39:19.174276Z", "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-zOy/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:19.141429Z", "task_name": "Set permanent SELinux state if disabled", "task_path": "/tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:20" }, { "ansible_version": "2.9.27", "end_time": "2025-05-30T14:39:19.207236Z", "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-zOy/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:19.185353Z", "task_name": "Handle errors", "task_path": "/tmp/collections-zOy/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:19 -0400 (0:00:00.001) 0:00:36.733 ************ =============================================================================== Reboot ----------------------------------------------------------------- 23.02s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:69 Gathering Facts --------------------------------------------------------- 1.14s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.81s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.78s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 0.63s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Disable selinux and set kernel ------------------------------------------ 0.61s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:45 Get local modifications - boolean --------------------------------------- 0.56s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.54s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Get selinux facts ------------------------------------------------------- 0.51s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.48s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Check if system is ostree ----------------------------------------------- 0.47s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.44s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Get local modifications - fcontext -------------------------------------- 0.44s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Backup original /etc/selinux/config ------------------------------------- 0.43s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Get local modifications - login ----------------------------------------- 0.43s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - port ------------------------------------------ 0.43s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub --- 0.40s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:87 fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub ---- 0.33s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.31s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.28s /tmp/collections-zOy/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17