ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_selinux_disabled.yml ******************************************* 1 plays in /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] *** [WARNING]: Failure using method (v2_playbook_on_play_start) in callback plugin (): 'Play' object has no attribute 'get_path' TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 Wednesday 21 May 2025 17:59:41 -0400 (0:00:00.020) 0:00:00.020 ********* ok: [managed-node2] META: ran handlers TASK [Ensure SELinux test packages] ******************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:16 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.862) 0:00:00.882 ********* included: /tmp/collections-2gp/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-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.021) 0:00:00.904 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.036) 0:00:00.940 ********* TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.034) 0:00:00.975 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.437) 0:00:01.412 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 21 May 2025 17:59:42 -0400 (0:00:00.038) 0:00:01.451 ********* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 21 May 2025 17:59:43 -0400 (0:00:00.366) 0:00:01.817 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 21 May 2025 17:59:43 -0400 (0:00:00.038) 0:00:01.855 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 17:59:43 -0400 (0:00:00.037) 0:00:01.892 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 17:59:46 -0400 (0:00:02.937) 0:00:04.830 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 17:59:46 -0400 (0:00:00.056) 0:00:04.886 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Wednesday 21 May 2025 17:59:49 -0400 (0:00:02.913) 0:00:07.800 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:59:51 -0400 (0:00:02.863) 0:00:10.664 ********* skipping: [managed-node2] => {} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Wednesday 21 May 2025 17:59:52 -0400 (0:00:00.035) 0:00:10.699 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Wednesday 21 May 2025 17:59:52 -0400 (0:00:00.033) 0:00:10.733 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Wednesday 21 May 2025 17:59:52 -0400 (0:00:00.034) 0:00:10.768 ********* ok: [managed-node2] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Wednesday 21 May 2025 17:59:52 -0400 (0:00:00.601) 0:00:11.370 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Wednesday 21 May 2025 17:59:52 -0400 (0:00:00.036) 0:00:11.406 ********* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Wednesday 21 May 2025 17:59:55 -0400 (0:00:02.829) 0:00:14.235 ********* ok: [managed-node2] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.040) 0:00:14.275 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get local modifications - port] ****************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.036) 0:00:14.311 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get local modifications - login] ***************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.036) 0:00:14.347 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get local modifications - fcontext] ************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.035) 0:00:14.383 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Unset facts used above] ************************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.036) 0:00:14.420 ********* ok: [managed-node2] => { "ansible_facts": { "ansible_facts": { "all_ipv4_addresses": [ "10.31.9.107" ], "all_ipv6_addresses": [ "fe80::10a3:feff:fe9d:e95d" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "08/24/2006", "bios_version": "4.11.amazon", "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": "1747864782", "hour": "17", "iso8601": "2025-05-21T21:59:42Z", "iso8601_basic": "20250521T175942009372", "iso8601_basic_short": "20250521T175942", "iso8601_micro": "2025-05-21T21:59:42.009372Z", "minute": "59", "month": "05", "second": "42", "time": "17:59:42", "tz": "EDT", "tz_offset": "-0400", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "20", "year": "2025" }, "default_ipv4": { "address": "10.31.9.107", "alias": "eth0", "broadcast": "10.31.11.255", "gateway": "10.31.8.1", "interface": "eth0", "macaddress": "12:a3:fe:9d:e9:5d", "mtu": 9001, "netmask": "255.255.252.0", "network": "10.31.8.0", "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/redhat-release", "distribution_file_variety": "RedHat", "distribution_release": "NA", "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.15.225 51990 22", "SSH_CONNECTION": "10.31.15.225 51990 10.31.9.107 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.9.107", "broadcast": "10.31.11.255", "netmask": "255.255.252.0", "network": "10.31.8.0" }, "ipv6": [ { "address": "fe80::10a3:feff:fe9d:e95d", "prefix": "64", "scope": "link" } ], "macaddress": "12:a3:fe:9d:e9:5d", "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": [ "eth0", "lo" ], "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" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "timestamping": [], "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "495801b3cd1240c6a81dc6b7c9f6412e", "memfree_mb": 2774, "memory_mb": { "nocache": { "free": 3301, "used": 238 }, "real": { "free": 2774, "total": 3539, "used": 765 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3539, "module_setup": true, "mounts": [ { "block_available": 64346327, "block_size": 4096, "block_total": 65533179, "block_used": 1186852, "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": 263562555392, "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_threads_per_core": 2, "processor_vcpus": 2, "product_name": "HVM domU", "product_serial": "ec25bb20-ea75-2b6d-ee9d-bcd85c4f9e42", "product_uuid": "ec25bb20-ea75-2b6d-ee9d-bcd85c4f9e42", "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": "AAAAB3NzaC1kc3MAAACBAMYyz+VYUJxpfLGxDJ9WqCaEc67BISJLmEVeI6ZVt2HhkEAuONnPKmToaDYB6+0hRBhIwiRiJvUWQtqh1GEqfbRwDpUydLE7I32tUF4IAKYR+k2EgFMpSdyP2MUFWM3Tk/eFwmkvr6/NRpz9wCho2ulGG2LcoRkIDlumAy/SuAGpAAAAFQCcCpDdvfKrqCRom2m1jl1m0QlyuwAAAIALbNGntrG5qWxnrC2ivB8vnsNiUsd0qUi9GG+vi4lABXVAFeXUoWrMVvTEU095oU9f5mnJSA6cB5qII5PlkZFo4GjiqvDEc7/yu6rKUeHtruc5hFK3ft1GNhf2Og/5mKgT6IFUJ0xMopYOZKJRr6aFb6gAt/wUb2N0ivUJj2rmLgAAAIEAlvLksByMq1iTChtIwDgBPJgJW7vaBAwPZvf9iH+S3JiRoRqRUo3XRZM6Cg44gBhL/0gqla5ejyMwgy7B0E3R7eTlsV1IvgQNML6yDdPefdfW/dxTpBOruT98wwZw5pf7B7pQZStO09VFRPYiye8u3i4/wOo0X6z+heig2DsXgWs=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHbBi39gwStr5zztPUkkvWuwUI7vUW6OlzBWFcliq330TkylnCfH8Qmt8ALAY3bx6rFYPxYLnGQG43Q3Anlnk7c=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAeUjqGhmJ+aZDYhElY/lE9hnkaAqcW1zzCu15a/HSxA", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQChkRAgljPxagM3t7LVbb1Bm0Fd3BQG2F+I3wLtN9Is80Zwj1oSjGpRnjZ/dfDkc6wMdP3yfAWTMoCc92jYkIc7nCiHzOOu2R4wmdUSFRzgZ8whwNcPHJkvsJ95FyRM4ATdlBYeRuoR3TwHP+pRZhfpPVQcJWCNfD1bhqb6wJ/JK4xHM/U1qbnxskhKj0JjKjVUoXPUN4rNBOpkNYbNAjRWyWo/suFutv5LHQqq5q4AitjH/WZ7bzfElA0jlBEo38KVivZO9eMT7bmVIldUr686NK6qkMvzcEPCPPYTN/1UcwG2YYqmqfyahU5nROWKVonf5tuDVxhmwQrdR8VZSxjWbdD73vv43bUod34porIaDqbpjUnMNra1Kf3Q4onViPuQrQfr35qb/OzQfGC9h+EXTH5GhE2Y/1xHB4yEdMZnthBn+F6UmTrhzmUt21UxUZETxY4kmBbi2JlZE0oPAfs/3fH0V0zS8Px6SikanBkbab9V+8Gj1c12gSaemK2Oc80=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "system_vendor": "Xen", "uptime_seconds": 359, "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_type": "xen" } }, "changed": false } TASK [Add a Linux System Roles SELinux User] *********************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:23 Wednesday 21 May 2025 17:59:55 -0400 (0:00:00.049) 0:00:14.470 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Wednesday 21 May 2025 17:59:56 -0400 (0:00:00.530) 0:00:15.000 ********* 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.972512", "end": "2025-05-21 17:59:58.711196", "rc": 0, "start": "2025-05-21 17:59:56.738684" } 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-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 Wednesday 21 May 2025 17:59:58 -0400 (0:00:02.435) 0:00:17.435 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 Wednesday 21 May 2025 17:59:59 -0400 (0:00:00.455) 0:00:17.891 ********* 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-1747864799.255274-12677-210513357876759/source", "state": "file", "uid": 0 } TASK [Switch to permissive to allow login when selinuxfs is not mounted] ******* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:43 Wednesday 21 May 2025 17:59:59 -0400 (0:00:00.649) 0:00:18.540 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "setenforce", "0" ], "delta": "0:00:00.003484", "end": "2025-05-21 18:00:00.221826", "rc": 0, "start": "2025-05-21 18:00:00.218342" } TASK [Get selinuxfs mountpoint] ************************************************ task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:47 Wednesday 21 May 2025 18:00:00 -0400 (0:00:00.411) 0:00:18.951 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "findmnt", "-n", "-t", "selinuxfs", "--output=target" ], "delta": "0:00:00.004181", "end": "2025-05-21 18:00:00.595124", "rc": 0, "start": "2025-05-21 18:00:00.590943" } STDOUT: /sys/fs/selinux TASK [Umount selinux mountpoint to emulate SELinux disabled system /sys/fs/selinux] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 Wednesday 21 May 2025 18:00:00 -0400 (0:00:00.386) 0:00:19.338 ********* ok: [managed-node2] => { "changed": false, "cmd": [ "umount", "-l", "/sys/fs/selinux" ], "delta": "0:00:00.007246", "end": "2025-05-21 18:00:00.956209", "rc": 0, "start": "2025-05-21 18:00:00.948963" } TASK [Include role] ************************************************************ task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:59 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.338) 0:00:19.676 ********* TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.038) 0:00:19.714 ********* included: /tmp/collections-2gp/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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.020) 0:00:19.735 ********* ok: [managed-node2] TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.458) 0:00:20.194 ********* included: /tmp/collections-2gp/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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.027) 0:00:20.221 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.016) 0:00:20.238 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.015) 0:00:20.254 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.016) 0:00:20.270 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.015) 0:00:20.286 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 18:00:01 -0400 (0:00:00.018) 0:00:20.305 ********* 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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 18:00:04 -0400 (0:00:02.858) 0:00:23.163 ********* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 18:00:04 -0400 (0:00:00.017) 0:00:23.181 ********* 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' The error appears to be in '/tmp/collections-2gp/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-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:63 Wednesday 21 May 2025 18:00:04 -0400 (0:00:00.019) 0:00:23.200 ********* fatal: [managed-node2]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'selinux_reboot_required' is undefined The error appears to be in '/tmp/collections-2gp/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.9.27", "end_time": "2025-05-21T22:00:04.525655+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'\n\nThe error appears to be in '/tmp/collections-2gp/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-21T22:00:04.510798+00:00Z", "task_name": "Ensure grubby used to modify selinux kernel parameter", "task_path": "/tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58" }, { "ansible_version": "2.9.27", "end_time": "2025-05-21T22:00:04.541023+00:00Z", "host": "managed-node2", "message": "The task includes an option with an undefined variable. The error was: 'selinux_reboot_required' is undefined\n\nThe error appears to be in '/tmp/collections-2gp/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-21T22:00:04.529931+00:00Z", "task_name": "Examine the selinux_reboot_required variable", "task_path": "/tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:63" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Wednesday 21 May 2025 18:00:04 -0400 (0:00:00.012) 0:00:23.213 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.94s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 2.91s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 2.86s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.86s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Ensure findmnt ---------------------------------------------------------- 2.83s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Add some mapping -------------------------------------------------------- 2.44s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Gathering Facts --------------------------------------------------------- 0.86s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 Upload testing /etc/selinux/config -------------------------------------- 0.65s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.60s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Add a Linux System Roles SELinux User ----------------------------------- 0.53s /tmp/collections-2gp/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.46s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Backup original /etc/selinux/config ------------------------------------- 0.46s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.44s /tmp/collections-2gp/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.41s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:43 Get selinuxfs mountpoint ------------------------------------------------ 0.39s /tmp/collections-2gp/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.37s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Umount selinux mountpoint to emulate SELinux disabled system /sys/fs/selinux --- 0.34s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.06s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Unset facts used above -------------------------------------------------- 0.05s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Set is_el6 flag --------------------------------------------------------- 0.04s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38