ansible-playbook [core 2.17.12] 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-Jsi executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, Apr 22 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml Skipping callback 'debug', 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 '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_all_transitions.yml ******************************************** 1 plays in /tmp/collections-Jsi/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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Wednesday 21 May 2025 17:56:13 -0400 (0:00:00.018) 0:00:00.018 ********* [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 Wednesday 21 May 2025 17:56:16 -0400 (0:00:02.397) 0:00:02.415 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Skip if not supported] *************************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:22 Wednesday 21 May 2025 17:56:16 -0400 (0:00:00.432) 0:00:02.847 ********* 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 [Ensure ansible_facts used by tests] ************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Wednesday 21 May 2025 17:56:16 -0400 (0:00:00.007) 0:00:02.854 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_test_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Wednesday 21 May 2025 17:56:16 -0400 (0:00:00.030) 0:00:02.885 ********* included: fedora.linux_system_roles.selinux for managed-node2 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 17:56:16 -0400 (0:00:00.034) 0:00:02.919 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 21 May 2025 17:56:17 -0400 (0:00:00.339) 0:00:03.258 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 21 May 2025 17:56:17 -0400 (0:00:00.020) 0:00:03.279 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 21 May 2025 17:56:17 -0400 (0:00:00.340) 0:00:03.619 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 21 May 2025 17:56:17 -0400 (0:00:00.021) 0:00:03.641 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_python_version is version('3', '<')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 17:56:17 -0400 (0:00:00.015) 0:00:03.656 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 17:56:22 -0400 (0:00:04.937) 0:00:08.594 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_os_family == \"Suse\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 17:56:22 -0400 (0:00:00.016) 0:00:08.611 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_facts[\"os_family\"] == \"RedHat\" and ansible_facts[\"distribution_major_version\"] in [\"8\", \"9\"]", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Wednesday 21 May 2025 17:56:22 -0400 (0:00:00.021) 0:00:08.632 ********* changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-policycoreutils-3.8-2.el10.noarch", "Installed: policycoreutils-python-utils-3.8-2.el10.noarch", "Installed: policycoreutils-3.8-2.el10.x86_64", "Removed: python3-policycoreutils-3.8-1.el10.noarch", "Removed: policycoreutils-3.8-1.el10.x86_64" ] } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:56:25 -0400 (0:00:02.679) 0:00:11.311 ********* skipping: [managed-node2] => { "false_condition": "__selinux_is_transactional | d(false)" } TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.047) 0:00:11.359 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_is_transactional | d(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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.045) 0:00:11.405 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.044) 0:00:11.449 ********* ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.959) 0:00:12.408 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_need_policy_targeted | d(false)", "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.043) 0:00:12.452 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_need_findmnt | d(false)", "skip_reason": "Conditional result was False" } TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.044) 0:00:12.497 ********* ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.033) 0:00:12.530 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.295658", "end": "2025-05-21 17:56:27.290141", "rc": 0, "start": "2025-05-21 17:56:26.994483" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Wednesday 21 May 2025 17:56:27 -0400 (0:00:00.860) 0:00:13.391 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.253378", "end": "2025-05-21 17:56:27.904219", "rc": 0, "start": "2025-05-21 17:56:27.650841" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Wednesday 21 May 2025 17:56:27 -0400 (0:00:00.613) 0:00:14.005 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.205595", "end": "2025-05-21 17:56:28.467066", "rc": 0, "start": "2025-05-21 17:56:28.261471" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Wednesday 21 May 2025 17:56:28 -0400 (0:00:00.563) 0:00:14.568 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.256565", "end": "2025-05-21 17:56:29.081343", "rc": 0, "start": "2025-05-21 17:56:28.824778" } TASK [Unset facts used above] ************************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Wednesday 21 May 2025 17:56:29 -0400 (0:00:00.613) 0:00:15.182 ********* ok: [managed-node2] => { "ansible_facts": { "ansible_facts": { "all_ipv4_addresses": [ "10.31.10.186" ], "all_ipv6_addresses": [ "fe80::100b:25ff:fedf:85c1" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "08/24/2006", "bios_vendor": "Xen", "bios_version": "4.11.amazon", "board_asset_tag": "NA", "board_name": "NA", "board_serial": "NA", "board_vendor": "NA", "board_version": "NA", "chassis_asset_tag": "NA", "chassis_serial": "NA", "chassis_vendor": "Xen", "chassis_version": "NA", "cmdline": { "BOOT_IMAGE": "(hd0,gpt2)/boot/vmlinuz-6.12.0-83.el10.x86_64", "console": "ttyS0,115200n8", "crashkernel": "2G-64G:256M,64G-:512M", "net.ifnames": "0", "rhgb": true, "ro": true, "root": "UUID=eed44663-6e0b-489c-8ced-e1d034f48f5b" }, "date_time": { "date": "2025-05-21", "day": "21", "epoch": "1747864576", "epoch_int": "1747864576", "hour": "17", "iso8601": "2025-05-21T21:56:16Z", "iso8601_basic": "20250521T175616277869", "iso8601_basic_short": "20250521T175616", "iso8601_micro": "2025-05-21T21:56:16.277869Z", "minute": "56", "month": "05", "second": "16", "time": "17:56:16", "tz": "EDT", "tz_dst": "EDT", "tz_offset": "-0400", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "20", "year": "2025" }, "default_ipv4": { "address": "10.31.10.186", "alias": "eth0", "broadcast": "10.31.11.255", "gateway": "10.31.8.1", "interface": "eth0", "macaddress": "12:0b:25:df:85:c1", "mtu": 9001, "netmask": "255.255.252.0", "network": "10.31.8.0", "prefix": "22", "type": "ether" }, "default_ipv6": {}, "device_links": { "ids": {}, "labels": {}, "masters": {}, "uuids": { "xvda2": [ "eed44663-6e0b-489c-8ced-e1d034f48f5b" ] } }, "devices": { "xvda": { "holders": [], "host": "", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "xvda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "sectors": "2048", "sectorsize": 512, "size": "1.00 MB", "start": "2048", "uuid": null }, "xvda2": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "eed44663-6e0b-489c-8ced-e1d034f48f5b" ] }, "sectors": "524283871", "sectorsize": 512, "size": "250.00 GB", "start": "4096", "uuid": "eed44663-6e0b-489c-8ced-e1d034f48f5b" } }, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "524288000", "sectorsize": "512", "size": "250.00 GB", "support_discard": "512", "vendor": null, "virtual": 1 } }, "discovered_interpreter_python": "/usr/bin/python3.12", "distribution_file_parsed": true, "distribution_file_path": "/etc/centos-release", "distribution_file_variety": "CentOS", "distribution_release": "Stream", "distribution_version": "10", "dns": { "nameservers": [ "10.29.169.13", "10.29.170.12", "10.2.32.1" ], "search": [ "testing-farm.us-east-1.aws.redhat.com" ] }, "domain": "", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "DEBUGINFOD_IMA_CERT_PATH": "/etc/keys/ima:", "DEBUGINFOD_URLS": "https://debuginfod.centos.org/ ", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.31.10.27 43610 22", "SSH_CONNECTION": "10.31.10.27 43610 10.31.10.186 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "5", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3.12" }, "eth0": { "active": true, "device": "eth0", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "off [fixed]", "hsr_dup_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "macsec_hw_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_gro_list": "off", "rx_udp_gro_forwarding": "off", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv4": "on [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp_segmentation": "on", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "vlan_challenged": "off [fixed]" }, "hw_timestamp_filters": [], "ipv4": { "address": "10.31.10.186", "broadcast": "10.31.11.255", "netmask": "255.255.252.0", "network": "10.31.8.0", "prefix": "22" }, "ipv6": [ { "address": "fe80::100b:25ff:fedf:85c1", "prefix": "64", "scope": "link" } ], "macaddress": "12:0b:25:df:85:c1", "module": "xen_netfront", "mtu": 9001, "pciid": "vif-0", "promisc": false, "timestamping": [], "type": "ether" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "managed-node2", "gather_subset": [ "all" ], "hostname": "managed-node2", "hostnqn": "nqn.2014-08.org.nvmexpress:uuid:6275e560-31d0-4b96-8db7-7ba41ae960ec", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "6.12.0-83.el10.x86_64", "kernel_version": "#1 SMP PREEMPT_DYNAMIC Fri May 9 19:46:05 UTC 2025", "lo": { "active": true, "device": "lo", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hsr_dup_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "macsec_hw_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_gro_list": "off", "rx_udp_gro_forwarding": "off", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_list": "on", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_sctp_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "vlan_challenged": "on [fixed]" }, "hw_timestamp_filters": [], "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "prefix": "8" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "timestamping": [], "type": "loopback" }, "loadavg": { "15m": 0.04736328125, "1m": 0.13134765625, "5m": 0.11572265625 }, "locally_reachable_ips": { "ipv4": [ "10.31.10.186", "127.0.0.0/8", "127.0.0.1" ], "ipv6": [ "::1", "fe80::100b:25ff:fedf:85c1" ] }, "lsb": {}, "lvm": { "lvs": {}, "pvs": {}, "vgs": {} }, "machine": "x86_64", "machine_id": "ec2bdc6c19be324a26cf65efe465a692", "memfree_mb": 2930, "memory_mb": { "nocache": { "free": 3198, "used": 264 }, "real": { "free": 2930, "total": 3462, "used": 532 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3462, "module_setup": true, "mounts": [ { "block_available": 63820863, "block_size": 4096, "block_total": 65519099, "block_used": 1698236, "device": "/dev/xvda2", "dump": 0, "fstype": "xfs", "inode_available": 130995899, "inode_total": 131070960, "inode_used": 75061, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "passno": 0, "size_available": 261410254848, "size_total": 268366229504, "uuid": "eed44663-6e0b-489c-8ced-e1d034f48f5b" } ], "nodename": "managed-node2", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,gpt2)/boot/vmlinuz-6.12.0-83.el10.x86_64", "console": [ "tty0", "ttyS0,115200n8" ], "crashkernel": "2G-64G:256M,64G-:512M", "net.ifnames": "0", "rhgb": true, "ro": true, "root": "UUID=eed44663-6e0b-489c-8ced-e1d034f48f5b" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz" ], "processor_cores": 1, "processor_count": 1, "processor_nproc": 2, "processor_threads_per_core": 2, "processor_vcpus": 2, "product_name": "HVM domU", "product_serial": "ec2bdc6c-19be-324a-26cf-65efe465a692", "product_uuid": "ec2bdc6c-19be-324a-26cf-65efe465a692", "product_version": "4.11.amazon", "python": { "executable": "/usr/bin/python3.12", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 12, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 12, 10, "final", 0 ] }, "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNdCfsJpwCietJS1Rylka4XwckdZcOWS7JPZsOZUT5uOCTTLsz4L7gU8R1VmgbU1YFQEwOtqs4ClD1iyPUNwzXE=", "ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIMRnhjHfD7aRDFTRwDh1DKsJNZlH36D4hcHzo0d7C4am", "ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQChY+L7CpwWsqBNycs7iohWZAwo2EW4E3VsCvjocHyW/r5Kio4H+vsRwR9a73tEgBpLk4HO947UY8Hi3xC3eCyO0quEinqC3rUjGs1HU1tvnCFvC3HGOA2DwaHsmhWh2mvTvgGhs0k/pkvgV5E24xVUoHsTJ8ArqW611COTzB9XjFP3gYMWIFDxqTxH5sEJt07yl8DFfFH7hsfzKxJxFPRV8LFnb9W35BxetFRmYtannCzLFf3pUTyjx49J25P6y9Ha9uFcNpQNAK0DtX8WAGcbQ++0GtB60nyoWpoZf5rq9NPsKAsD3y8OX4EFEMU4QQK/iGWmpI9mSrSMBozFNjBdKJdwyGMPTPbvwTxjxMMvP8hQOHreez/88ceiPcinoifJp4BFaWcu4R1BDviNScWx56Ap9sNAOjIrd6e7KWGv012ZyLeYDlH49viBi6ceSmyfdPgfp77LdY89CAC/7Pa9YyKGqVaaz3xzD7PWlT2Jag39n1IFO3aAi2ZX94oOP9U=", "ssh_host_key_rsa_public_keytype": "ssh-rsa", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "system_vendor": "Xen", "uptime_seconds": 162, "user_dir": "/root", "user_gecos": "Super User", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_tech_guest": [ "xen" ], "virtualization_tech_host": [], "virtualization_type": "xen" } }, "changed": false } TASK [Save config] ************************************************************* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:29 Wednesday 21 May 2025 17:56:29 -0400 (0:00:00.051) 0:00:15.233 ********* included: /tmp/collections-Jsi/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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Wednesday 21 May 2025 17:56:29 -0400 (0:00:00.017) 0:00:15.251 ********* changed: [managed-node2] => { "changed": true, "checksum": "fe28c32d576c2b84ba06b17892b705cb1f5f2514", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "1e5bcf0ec876d9ee86a4693dce912d28", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 1187, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Disable selinux and set kernel] ****************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 Wednesday 21 May 2025 17:56:29 -0400 (0:00:00.434) 0:00:15.685 ********* fatal: [managed-node2]: FAILED! => {} MSG: The task includes an option with an undefined variable.. 'dict object' has no attribute 'os_family' The error appears to be in '/tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml': line 32, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Disable selinux and set kernel ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=18 changed=2 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-21T21:56:29.650628+00:00Z", "host": "managed-node2", "message": "The task includes an option with an undefined variable.. 'dict object' has no attribute 'os_family'\n\nThe error appears to be in '/tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml': line 32, 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: Disable selinux and set kernel\n ^ here\n", "start_time": "2025-05-21T21:56:29.640192+00:00Z", "task_name": "Disable selinux and set kernel", "task_path": "/tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Wednesday 21 May 2025 17:56:29 -0400 (0:00:00.011) 0:00:15.697 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 4.94s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.68s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Gathering Facts --------------------------------------------------------- 2.40s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.96s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Get local modifications - boolean --------------------------------------- 0.86s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Get local modifications - fcontext -------------------------------------- 0.61s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.61s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Get local modifications - login ----------------------------------------- 0.56s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Backup original /etc/selinux/config ------------------------------------- 0.43s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Check if system is ostree ----------------------------------------------- 0.43s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.34s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.34s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Unset facts used above -------------------------------------------------- 0.05s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.05s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.05s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Ensure findmnt ---------------------------------------------------------- 0.04s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 fedora.linux_system_roles.selinux : Fail if reboot is needed and not set --- 0.04s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Ensure selinux-policy-targeted ------------------------------------------ 0.04s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Ensure SELinux testing packages ----------------------------------------- 0.03s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Set is_el6 flag --------------------------------------------------------- 0.03s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38