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 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_selinux_disabled.yml ******************************************* 1 plays in /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 Wednesday 21 May 2025 17:58:45 -0400 (0:00:00.018) 0:00:00.018 ********* ok: [managed-node2] TASK [Ensure SELinux test packages] ******************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:16 Wednesday 21 May 2025 17:58:46 -0400 (0:00:01.046) 0:00:01.064 ********* included: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml 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:58:47 -0400 (0:00:00.035) 0:00:01.100 ********* 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:58:47 -0400 (0:00:00.031) 0:00:01.132 ********* 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:58:47 -0400 (0:00:00.032) 0:00:01.164 ********* 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:58:47 -0400 (0:00:00.408) 0:00:01.573 ********* 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:58:47 -0400 (0:00:00.022) 0:00:01.595 ********* 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:58:47 -0400 (0:00:00.318) 0:00:01.914 ********* 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:58:47 -0400 (0:00:00.022) 0:00:01.936 ********* 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:58:47 -0400 (0:00:00.016) 0:00:01.952 ********* 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:58:50 -0400 (0:00:02.963) 0:00:04.916 ********* 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:58:50 -0400 (0:00:00.017) 0:00:04.934 ********* 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:58:53 -0400 (0:00:02.824) 0:00:07.758 ********* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:58:56 -0400 (0:00:02.819) 0:00:10.578 ********* 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:58:56 -0400 (0:00:00.041) 0:00:10.619 ********* 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:58:56 -0400 (0:00:00.042) 0:00:10.661 ********* 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:58:56 -0400 (0:00:00.032) 0:00:10.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:58:57 -0400 (0:00:00.717) 0:00:11.411 ********* 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:58:57 -0400 (0:00:00.030) 0:00:11.441 ********* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do 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:59:00 -0400 (0:00:02.862) 0:00:14.304 ********* 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:59:00 -0400 (0:00:00.031) 0:00:14.336 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_get_test_facts | d(true)", "skip_reason": "Conditional result was False" } 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:59:00 -0400 (0:00:00.045) 0:00:14.381 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_get_test_facts | d(true)", "skip_reason": "Conditional result was False" } 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:59:00 -0400 (0:00:00.045) 0:00:14.427 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_get_test_facts | d(true)", "skip_reason": "Conditional result was False" } 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:59:00 -0400 (0:00:00.044) 0:00:14.472 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "__selinux_get_test_facts | d(true)", "skip_reason": "Conditional result was False" } 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:59:00 -0400 (0:00:00.038) 0:00:14.511 ********* 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": "1747864726", "epoch_int": "1747864726", "hour": "17", "iso8601": "2025-05-21T21:58:46Z", "iso8601_basic": "20250521T175846879147", "iso8601_basic_short": "20250521T175846", "iso8601_micro": "2025-05-21T21:58:46.879147Z", "minute": "58", "month": "05", "second": "46", "time": "17:58:46", "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.2, "1m": 0.85, "5m": 0.47 }, "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": 2770, "memory_mb": { "nocache": { "free": 3304, "used": 235 }, "real": { "free": 2770, "total": 3539, "used": 769 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3539, "module_setup": true, "mounts": [ { "block_available": 64346331, "block_size": 4096, "block_total": 65533179, "block_used": 1186848, "device": "/dev/xvda1", "fstype": "xfs", "inode_available": 130996101, "inode_total": 131071472, "inode_used": 75371, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 263562571776, "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": 319, "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 [Add a Linux System Roles SELinux User] *********************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:23 Wednesday 21 May 2025 17:59:00 -0400 (0:00:00.064) 0:00:14.575 ********* changed: [managed-node2] => { "append": false, "changed": true, "comment": "Linux System Roles SELinux User", "group": 1000, "home": "/home/sar-user", "move_home": false, "name": "sar-user", "shell": "/bin/bash", "state": "present", "uid": 1000 } TASK [Add some mapping] ******************************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Wednesday 21 May 2025 17:59:01 -0400 (0:00:00.551) 0:00:15.126 ********* ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail\necho -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:01.994171", "end": "2025-05-21 17:59:03.398694", "rc": 0, "start": "2025-05-21 17:59:01.404523" } STDOUT: Port tcp/22100 already defined, modifying instead Login mapping for sar-user is already defined, modifying instead TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 Wednesday 21 May 2025 17:59:03 -0400 (0:00:02.409) 0:00:17.536 ********* changed: [managed-node2] => { "changed": true, "checksum": "61a40e1faa78b234462d16dffbdb3fb869442406", "dest": "/etc/selinux/config.test_selinux_disabled", "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 [Upload testing /etc/selinux/config] ************************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 Wednesday 21 May 2025 17:59:03 -0400 (0:00:00.435) 0:00:17.971 ********* changed: [managed-node2] => { "changed": true, "checksum": "385caf4e178c9a1dfcdaac71738934c735201480", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "293160d55f3a26d5bc687154d028eb47", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 547, "src": "/root/.ansible/tmp/ansible-tmp-1747864743.9164727-12157-29815441302284/source", "state": "file", "uid": 0 } TASK [Switch to permissive to allow login when selinuxfs is not mounted] ******* task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:43 Wednesday 21 May 2025 17:59:04 -0400 (0:00:00.626) 0:00:18.598 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "setenforce", "0" ], "delta": "0:00:00.003606", "end": "2025-05-21 17:59:04.791770", "rc": 0, "start": "2025-05-21 17:59:04.788164" } TASK [Get selinuxfs mountpoint] ************************************************ task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:47 Wednesday 21 May 2025 17:59:04 -0400 (0:00:00.326) 0:00:18.924 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "findmnt", "-n", "-t", "selinuxfs", "--output=target" ], "delta": "0:00:00.003862", "end": "2025-05-21 17:59:05.114776", "rc": 0, "start": "2025-05-21 17:59:05.110914" } STDOUT: /sys/fs/selinux TASK [Umount selinux mountpoint to emulate SELinux disabled system /sys/fs/selinux] *** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 Wednesday 21 May 2025 17:59:05 -0400 (0:00:00.324) 0:00:19.249 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "umount", "-l", "/sys/fs/selinux" ], "delta": "0:00:00.007157", "end": "2025-05-21 17:59:05.444129", "rc": 0, "start": "2025-05-21 17:59:05.436972" } TASK [Include role] ************************************************************ task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:59 Wednesday 21 May 2025 17:59:05 -0400 (0:00:00.326) 0:00:19.576 ********* redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Wednesday 21 May 2025 17:59:05 -0400 (0:00:00.046) 0:00:19.622 ********* included: /tmp/collections-RyE/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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Wednesday 21 May 2025 17:59:05 -0400 (0:00:00.019) 0:00:19.641 ********* ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Wednesday 21 May 2025 17:59:06 -0400 (0:00:00.482) 0:00:20.124 ********* included: /tmp/collections-RyE/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-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 17:59:06 -0400 (0:00:00.024) 0:00:20.148 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "not __selinux_is_ostree is defined", "skip_reason": "Conditional result was 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:59:06 -0400 (0:00:00.016) 0:00:20.164 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "not __selinux_is_ostree is defined", "skip_reason": "Conditional result was 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:59:06 -0400 (0:00:00.016) 0:00:20.180 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "not __selinux_is_transactional is defined", "skip_reason": "Conditional result was 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:59:06 -0400 (0:00:00.016) 0:00:20.197 ********* skipping: [managed-node2] => { "changed": false, "false_condition": "not __selinux_is_transactional is defined", "skip_reason": "Conditional result was 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:59:06 -0400 (0:00:00.015) 0:00:20.212 ********* 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:59:06 -0400 (0:00:00.014) 0:00:20.227 ********* 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:59:09 -0400 (0:00:02.869) 0:00:23.097 ********* 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:59:09 -0400 (0:00:00.018) 0:00:23.116 ********* fatal: [managed-node2]: FAILED! => {} MSG: The conditional check 'ansible_facts["os_family"] == "RedHat" and ansible_facts["distribution_major_version"] in ["8", "9"]' failed. The error was: error while evaluating conditional (ansible_facts["os_family"] == "RedHat" and ansible_facts["distribution_major_version"] in ["8", "9"]): '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/roles/selinux/tasks/ensure_selinux_packages.yml': line 58, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Ensure grubby used to modify selinux kernel parameter ^ here TASK [Examine the selinux_reboot_required variable] **************************** task path: /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:63 Wednesday 21 May 2025 17:59:09 -0400 (0:00:00.014) 0:00:23.130 ********* fatal: [managed-node2]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'selinux_reboot_required' is undefined. 'selinux_reboot_required' is undefined The error appears to be in '/tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml': line 63, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: rescue: - name: Examine the selinux_reboot_required variable ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=24 changed=3 unreachable=0 failed=1 skipped=17 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.16.14", "end_time": "2025-05-21T21:59:09.039623+00:00Z", "host": "managed-node2", "message": "The conditional check 'ansible_facts[\"os_family\"] == \"RedHat\" and ansible_facts[\"distribution_major_version\"] in [\"8\", \"9\"]' failed. The error was: error while evaluating conditional (ansible_facts[\"os_family\"] == \"RedHat\" and ansible_facts[\"distribution_major_version\"] in [\"8\", \"9\"]): '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/roles/selinux/tasks/ensure_selinux_packages.yml': line 58, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure grubby used to modify selinux kernel parameter\n ^ here\n", "start_time": "2025-05-21T21:59:09.028456+00:00Z", "task_name": "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" }, { "ansible_version": "2.16.14", "end_time": "2025-05-21T21:59:09.053052+00:00Z", "host": "managed-node2", "message": "The task includes an option with an undefined variable. The error was: 'selinux_reboot_required' is undefined. 'selinux_reboot_required' is undefined\n\nThe error appears to be in '/tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml': line 63, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n rescue:\n - name: Examine the selinux_reboot_required variable\n ^ here\n", "start_time": "2025-05-21T21:59:09.043354+00:00Z", "task_name": "Examine the selinux_reboot_required variable", "task_path": "/tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:63" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Wednesday 21 May 2025 17:59:09 -0400 (0:00:00.011) 0:00:23.142 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.96s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.87s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Ensure findmnt ---------------------------------------------------------- 2.86s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.82s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.82s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Add some mapping -------------------------------------------------------- 2.41s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Gathering Facts --------------------------------------------------------- 1.05s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.72s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Upload testing /etc/selinux/config -------------------------------------- 0.63s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 Add a Linux System Roles SELinux User ----------------------------------- 0.55s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:23 fedora.linux_system_roles.selinux : Ensure ansible_facts used by role --- 0.48s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Backup original /etc/selinux/config ------------------------------------- 0.44s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.41s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Switch to permissive to allow login when selinuxfs is not mounted ------- 0.33s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:43 Umount selinux mountpoint to emulate SELinux disabled system /sys/fs/selinux --- 0.33s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 Get selinuxfs mountpoint ------------------------------------------------ 0.32s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:47 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.06s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Include role ------------------------------------------------------------ 0.05s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:59 Get local modifications - port ------------------------------------------ 0.05s /tmp/collections-RyE/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51