ansible-playbook [core 2.16.14] 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-RyE executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-RyE/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-RyE/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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Wednesday 21 May 2025 17:56:24 -0400 (0:00:00.019) 0:00:00.019 ********* ok: [managed-node2] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 Wednesday 21 May 2025 17:56:25 -0400 (0:00:01.315) 0:00:01.335 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Skip if not supported] *************************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:22 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.434) 0:00:01.769 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.022) 0:00:01.791 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Wednesday 21 May 2025 17:56:25 -0400 (0:00:00.032) 0:00:01.824 ********* TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.034) 0:00:01.858 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.322) 0:00:02.180 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.020) 0:00:02.201 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.315) 0:00:02.516 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.021) 0:00:02.537 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 17:56:26 -0400 (0:00:00.014) 0:00:02.552 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 17:56:41 -0400 (0:00:14.555) 0:00:17.108 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 17:56:41 -0400 (0:00:00.017) 0:00:17.125 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Wednesday 21 May 2025 17:56:44 -0400 (0:00:02.863) 0:00:19.988 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:56:47 -0400 (0:00:03.562) 0:00:23.551 ********* skipping: [managed-node2] => { "false_condition": "__selinux_is_transactional | d(false)" } TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Wednesday 21 May 2025 17:56:47 -0400 (0:00:00.051) 0:00:23.602 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Wednesday 21 May 2025 17:56:47 -0400 (0:00:00.046) 0:00:23.648 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Wednesday 21 May 2025 17:56:47 -0400 (0:00:00.045) 0:00:23.694 ********* ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Wednesday 21 May 2025 17:56:48 -0400 (0:00:00.740) 0:00:24.435 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Wednesday 21 May 2025 17:56:48 -0400 (0:00:00.030) 0:00:24.465 ********* 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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Wednesday 21 May 2025 17:56:48 -0400 (0:00:00.029) 0:00:24.495 ********* ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Wednesday 21 May 2025 17:56:48 -0400 (0:00:00.020) 0:00:24.515 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "boolean", "-l", "-n", "-C" ], "delta": "0:00:00.617115", "end": "2025-05-21 17:56:49.684474", "rc": 0, "start": "2025-05-21 17:56:49.067359" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Wednesday 21 May 2025 17:56:49 -0400 (0:00:01.038) 0:00:25.554 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "port", "-l", "-n", "-C" ], "delta": "0:00:00.517965", "end": "2025-05-21 17:56:50.534289", "rc": 0, "start": "2025-05-21 17:56:50.016324" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Wednesday 21 May 2025 17:56:50 -0400 (0:00:00.848) 0:00:26.403 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "login", "-l", "-n", "-C" ], "delta": "0:00:00.550806", "end": "2025-05-21 17:56:51.415555", "rc": 0, "start": "2025-05-21 17:56:50.864749" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Wednesday 21 May 2025 17:56:51 -0400 (0:00:00.881) 0:00:27.285 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "/usr/sbin/semanage", "fcontext", "-l", "-n", "-C" ], "delta": "0:00:00.533873", "end": "2025-05-21 17:56:52.279062", "rc": 0, "start": "2025-05-21 17:56:51.745189" } TASK [Unset facts used above] ************************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Wednesday 21 May 2025 17:56:52 -0400 (0:00:00.862) 0:00:28.147 ********* ok: [managed-node2] => { "ansible_facts": { "ansible_facts": { "all_ipv4_addresses": [ "10.31.40.113" ], "all_ipv6_addresses": [ "fe80::c11:c9ff:fe98:a99b" ], "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,msdos1)/boot/vmlinuz-4.18.0-553.5.1.el8.x86_64", "crashkernel": "auto", "net.ifnames": "0", "quiet": true, "rhgb": true, "ro": true, "root": "UUID=fe591198-9082-4b15-9b62-e83518524cd2" }, "date_time": { "date": "2025-05-21", "day": "21", "epoch": "1747864585", "epoch_int": "1747864585", "hour": "17", "iso8601": "2025-05-21T21:56:25Z", "iso8601_basic": "20250521T175625181591", "iso8601_basic_short": "20250521T175625", "iso8601_micro": "2025-05-21T21:56:25.181591Z", "minute": "56", "month": "05", "second": "25", "time": "17:56:25", "tz": "EDT", "tz_dst": "EDT", "tz_offset": "-0400", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "20", "year": "2025" }, "default_ipv4": { "address": "10.31.40.113", "alias": "eth0", "broadcast": "10.31.43.255", "gateway": "10.31.40.1", "interface": "eth0", "macaddress": "0e:11:c9:98:a9:9b", "mtu": 9001, "netmask": "255.255.252.0", "network": "10.31.40.0", "prefix": "22", "type": "ether" }, "default_ipv6": {}, "device_links": { "ids": {}, "labels": {}, "masters": {}, "uuids": { "xvda1": [ "fe591198-9082-4b15-9b62-e83518524cd2" ] } }, "devices": { "xvda": { "holders": [], "host": "", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "xvda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "fe591198-9082-4b15-9b62-e83518524cd2" ] }, "sectors": "524285919", "sectorsize": 512, "size": "250.00 GB", "start": "2048", "uuid": "fe591198-9082-4b15-9b62-e83518524cd2" } }, "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": "0", "vendor": null, "virtual": 1 } }, "discovered_interpreter_python": "/usr/libexec/platform-python", "distribution_file_parsed": true, "distribution_file_path": "/etc/centos-release", "distribution_file_variety": "CentOS", "distribution_release": "Stream", "distribution_version": "8", "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": { "BASH_FUNC_which%%": "() { ( alias;\n eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@\n}", "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "DEBUGINFOD_URLS": "https://debuginfod.centos.org/ ", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "PATH": "/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": "2", "SSH_CLIENT": "10.31.41.68 52610 22", "SSH_CONNECTION": "10.31.41.68 52610 10.31.40.113 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_ID": "5", "_": "/usr/libexec/platform-python", "which_declare": "declare -f" }, "eth0": { "active": true, "device": "eth0", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "off [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "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_lockless": "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.40.113", "broadcast": "10.31.43.255", "netmask": "255.255.252.0", "network": "10.31.40.0", "prefix": "22" }, "ipv6": [ { "address": "fe80::c11:c9ff:fe98:a99b", "prefix": "64", "scope": "link" } ], "macaddress": "0e:11:c9:98:a9:9b", "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": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "4.18.0-553.5.1.el8.x86_64", "kernel_version": "#1 SMP Tue May 21 05:46:01 UTC 2024", "lo": { "active": true, "device": "lo", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [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_lockless": "on [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.07, "1m": 0.19, "5m": 0.16 }, "locally_reachable_ips": { "ipv4": [ "10.31.40.113", "127.0.0.0/8", "127.0.0.1" ], "ipv6": [ "::1", "fe80::c11:c9ff:fe98:a99b" ] }, "lsb": {}, "lvm": "N/A", "machine": "x86_64", "machine_id": "8c0162c7cb024be48623d6a5e2261f7c", "memfree_mb": 2926, "memory_mb": { "nocache": { "free": 3339, "used": 200 }, "real": { "free": 2926, "total": 3539, "used": 613 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3539, "module_setup": true, "mounts": [ { "block_available": 64366456, "block_size": 4096, "block_total": 65533179, "block_used": 1166723, "device": "/dev/xvda1", "fstype": "xfs", "inode_available": 130996204, "inode_total": 131071472, "inode_used": 75268, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 263645003776, "size_total": 268423901184, "uuid": "fe591198-9082-4b15-9b62-e83518524cd2" } ], "nodename": "managed-node2", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-4.18.0-553.5.1.el8.x86_64", "crashkernel": "auto", "net.ifnames": "0", "quiet": true, "rhgb": true, "ro": true, "root": "UUID=fe591198-9082-4b15-9b62-e83518524cd2" }, "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": "ec28feb7-60ed-d3a4-4d56-eb8ab49bdc01", "product_uuid": "ec28feb7-60ed-d3a4-4d56-eb8ab49bdc01", "product_version": "4.11.amazon", "python": { "executable": "/usr/libexec/platform-python", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 8, "minor": 6, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 6, 8, "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_dsa_public": "AAAAB3NzaC1kc3MAAACBAM1SQdzzJ+OcZ3H5q8ohpPrdOjXYvRCzB3ajgMeAS1RjR44bpdpSDngdpF2+hCnuOhw/b/pnab5BY9Pr5jAGVjBmbBr/jwKr3PwJSbVqFFhiL29M5nJIxYpEtSseHU9LlXU8l/3FDc5FhxVp4W8s/1ODahNawm9T0LsAAj3ADAURAAAAFQDE9jyIUSUyhW0U79OxOFr7qdrm0QAAAIEAh0i+mfev8wjpbXvvUAWsFZ6Sl0WOSy0B2DA0ryhTTKQKVqWuLxpFJg+h+x2NntuKL7Yc9ItnmLDZvVhiv6H+e3QJuS5hzUUs7Ga05AOzF6qVuudBzvf0dXyZLbVQ7GHnst2gHiGiTILRRfrGuwcjI4Z2KHsYIqCDGD8a9Wk41gQAAACBAKd+hG5LsS0Q6JBqgOO+VMLhZ2x2i25w3vME9zx1pEvZTZSCj5ANnfngayTkOQqPoavAh3jeajOwSlZatxWnFnvBeDnfkU/0MalBSULbBkJR8qm2loqEZ5wfD9WNgHRWpvuJqyBxPDvri8d5Yd1WnWdjgtHRyXPIHjgMXX2eX1CC", "ssh_host_key_dsa_public_keytype": "ssh-dss", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDMtQKo4c+D+nTIi/Hxb0O2OlP22oEkDPLfOgXvFrll2Hzb1/AWciBOn3qKmpRck4+72jNbaBIDa0stBqP3n8Mk=", "ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIG3FL0FPGeizwy+ySlBN5N69ycbUPTMRKl9HC0X2WS2t", "ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDZ8IG3AQPZDXCs+ztAH6gG2AkNSTFt0IMUvuNrqvoXkTDYBEfHNhYo3BdV+IqLAkdm+xt7cI776djt/Ij+7E0ycBwHd7GNtd4hql5hHhIalS20Uj+FfIkZb05umLFPj8l1LaSHbUMawaSG6RX45GY7NUNNYzH3WzrjATHwzZQXlhIb6rIxu7DKjztHgLk6W2MHJW8bHn/fMaXGRgguovXGNTr4CAV6SrZAaoazr/YxHyjBnKCW3HajHOQRy78DWYX9/VWkD6PKhQoob0EOwdgcz5bSNObqQtoLsOXIULvIbvEuIhIM7Mi1j6aIEd/zhAjZKMRY8wglfG8Ftz6RC7NjEoovQwkq5JOoaaN8HFijro2yGiJb/3PBh4MH1gwn9aLxi7qBo0wUWQEqH3IFd9jlPEzFSmATAls97+vR6f7mLLSU6N0Dfu1YNHFkXSZRgKAstKlNWKyMTXSEDVoMJ6kD4Q9MTnuqM5Aht3V5HmyJptCHIjCvO9rgOUQp1rOQ/m0=", "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": 178, "user_dir": "/root", "user_gecos": "root", "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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:29 Wednesday 21 May 2025 17:56:52 -0400 (0:00:00.054) 0:00:28.202 ********* included: /tmp/collections-RyE/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-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Wednesday 21 May 2025 17:56:52 -0400 (0:00:00.018) 0:00:28.220 ********* 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 [Disable selinux and set kernel] ****************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:32 Wednesday 21 May 2025 17:56:52 -0400 (0:00:00.447) 0:00:28.668 ********* fatal: [managed-node2]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'os_family'. 'dict object' has no attribute 'os_family' The error appears to be in '/tmp/collections-RyE/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=8 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.16.14", "end_time": "2025-05-21T21:56:52.854865+00:00Z", "host": "managed-node2", "message": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'os_family'. 'dict object' has no attribute 'os_family'\n\nThe error appears to be in '/tmp/collections-RyE/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:52.843893+00:00Z", "task_name": "Disable selinux and set kernel", "task_path": "/tmp/collections-RyE/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:52 -0400 (0:00:00.012) 0:00:28.680 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------ 14.56s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 3.56s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.86s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Gathering Facts --------------------------------------------------------- 1.32s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:2 Get local modifications - boolean --------------------------------------- 1.04s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Get local modifications - login ----------------------------------------- 0.88s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Get local modifications - fcontext -------------------------------------- 0.86s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Get local modifications - port ------------------------------------------ 0.85s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.74s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Backup original /etc/selinux/config ------------------------------------- 0.45s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/selinux_config_save.yml:2 Check if system is ostree ----------------------------------------------- 0.43s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_transitions.yml:17 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.32s /tmp/collections-RyE/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.32s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Unset facts used above -------------------------------------------------- 0.05s /tmp/collections-RyE/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-RyE/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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 fedora.linux_system_roles.selinux : Fail if reboot is needed and not set --- 0.05s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Ensure SELinux testing packages ----------------------------------------- 0.03s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Ensure ansible_facts used by tests -------------------------------------- 0.03s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Ensure selinux-policy-targeted ------------------------------------------ 0.03s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22