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 statically imported: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml statically imported: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_all_purge.yml ************************************************** 1 plays in /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] *** [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_all_purge.yml:2 Wednesday 21 May 2025 17:57:12 -0400 (0:00:00.019) 0:00:00.019 ********* ok: [managed-node1] META: ran handlers TASK [Ensure SELinux test packages] ******************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:13 Wednesday 21 May 2025 17:57:13 -0400 (0:00:01.085) 0:00:01.105 ********* included: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml for managed-node1 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:57:13 -0400 (0:00:00.024) 0:00:01.129 ********* skipping: [managed-node1] => { "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:57:13 -0400 (0:00:00.035) 0:00:01.165 ********* 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:57:13 -0400 (0:00:00.033) 0:00:01.198 ********* ok: [managed-node1] => { "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:57:13 -0400 (0:00:00.428) 0:00:01.627 ********* ok: [managed-node1] => { "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:57:13 -0400 (0:00:00.057) 0:00:01.684 ********* ok: [managed-node1] => { "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:57:14 -0400 (0:00:00.384) 0:00:02.069 ********* ok: [managed-node1] => { "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:57:14 -0400 (0:00:00.056) 0:00:02.126 ********* skipping: [managed-node1] => { "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:57:14 -0400 (0:00:00.045) 0:00:02.171 ********* ok: [managed-node1] => { "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:57:28 -0400 (0:00:14.443) 0:00:16.614 ********* skipping: [managed-node1] => { "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:57:28 -0400 (0:00:00.036) 0:00:16.651 ********* ok: [managed-node1] => { "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:57:31 -0400 (0:00:02.852) 0:00:19.503 ********* changed: [managed-node1] => { "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-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:57:35 -0400 (0:00:03.525) 0:00:23.028 ********* skipping: [managed-node1] => {} 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:57:35 -0400 (0:00:00.035) 0:00:23.063 ********* skipping: [managed-node1] => { "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:57:35 -0400 (0:00:00.035) 0:00:23.099 ********* skipping: [managed-node1] => { "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:57:35 -0400 (0:00:00.034) 0:00:23.134 ********* ok: [managed-node1] 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:57:35 -0400 (0:00:00.624) 0:00:23.758 ********* skipping: [managed-node1] => { "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:57:36 -0400 (0:00:00.034) 0:00:23.793 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } 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:57:36 -0400 (0:00:00.034) 0:00:23.827 ********* ok: [managed-node1] => { "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:57:36 -0400 (0:00:00.046) 0:00:23.874 ********* skipping: [managed-node1] => { "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:57:36 -0400 (0:00:00.033) 0:00:23.908 ********* skipping: [managed-node1] => { "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:57:36 -0400 (0:00:00.034) 0:00:23.943 ********* skipping: [managed-node1] => { "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:57:36 -0400 (0:00:00.036) 0:00:23.979 ********* skipping: [managed-node1] => { "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:57:36 -0400 (0:00:00.034) 0:00:24.014 ********* ok: [managed-node1] => { "ansible_facts": { "ansible_facts": { "all_ipv4_addresses": [ "10.31.10.224" ], "all_ipv6_addresses": [ "fe80::10c5:86ff:feac:3949" ], "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": "1747864633", "hour": "17", "iso8601": "2025-05-21T21:57:13Z", "iso8601_basic": "20250521T175713270571", "iso8601_basic_short": "20250521T175713", "iso8601_micro": "2025-05-21T21:57:13.270571Z", "minute": "57", "month": "05", "second": "13", "time": "17:57:13", "tz": "EDT", "tz_offset": "-0400", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "20", "year": "2025" }, "default_ipv4": { "address": "10.31.10.224", "alias": "eth0", "broadcast": "10.31.11.255", "gateway": "10.31.8.1", "interface": "eth0", "macaddress": "12:c5:86:ac:39:49", "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 53106 22", "SSH_CONNECTION": "10.31.15.225 53106 10.31.10.224 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.10.224", "broadcast": "10.31.11.255", "netmask": "255.255.252.0", "network": "10.31.8.0" }, "ipv6": [ { "address": "fe80::10c5:86ff:feac:3949", "prefix": "64", "scope": "link" } ], "macaddress": "12:c5:86:ac:39:49", "module": "xen_netfront", "mtu": 9001, "pciid": "vif-0", "promisc": false, "timestamping": [], "type": "ether" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "managed-node1", "gather_subset": [ "all" ], "hostname": "managed-node1", "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": "a3440c5ffac54554a7df1c5ed2b4bdc2", "memfree_mb": 2933, "memory_mb": { "nocache": { "free": 3346, "used": 193 }, "real": { "free": 2933, "total": 3539, "used": 606 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3539, "module_setup": true, "mounts": [ { "block_available": 64366427, "block_size": 4096, "block_total": 65533179, "block_used": 1166752, "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": 263644884992, "size_total": 268423901184, "uuid": "fe591198-9082-4b15-9b62-e83518524cd2" } ], "nodename": "managed-node1", "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": "ec2ff748-d861-88f3-d4f2-f5f86094a7c6", "product_uuid": "ec2ff748-d861-88f3-d4f2-f5f86094a7c6", "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": "AAAAB3NzaC1kc3MAAACBAKdvCt5KpDfBuKQfbzqwxXsZrxQqMH/y20/HJZzCeADG/vT/hnx+2bTNHb1EMGjnzbLe8x1l4tEi8ek5cUnYA+eL44s7iSfHaBxJkYZAq/+pohsjH+DtBW7LxNKZom4E9TaVCb91YfnswqhMZrXg0oZfpFT6RyVVV4C/jKA8y6vjAAAAFQDIDIVOGlNxEO/v6FuAztQWk5b8IQAAAIEAn8MixemX5q/I3CKXr8CefB8EStB015z0Hqd7x6SEpXdnuBsGdgnC349V2H1Gu+hrmh4bD9iX+P2Jug1fZbrfLsPSdTyd5o0G1useRnaKgJ7Wd/+uDVpEQgh9p68GRLQrm9xGcY+XGurPdNDWxH9mmXAqQgN0oKYSVLyV6RumHHYAAACAbx3wJ4tescqb6JFGYShJWyVa3IX98qry/2eH1mkVgcy3Wan97exn+8siej5QfD5mxG2rYXbzFK5/elD1dAnVrQtyMd8waQ6kJSYRBSO0njZ4KLI5iqbOR/6BFhNDuwCI02pL0KrCrzllMEWuVZQl6TE4HMa8AcsZb2K9e2n/Oz4=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLAh+XJSvhGMYNLG5jqkzfHTzJoHE90mMfUPfAodBg+TQlcWNDTZOn6TTtRl6F3PnpvMkpounBZ/wirEDK0Nz88=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIPEn5CE5WFOaw748yCqrBaQgBbUa6dkKwVnsBOM90Eji", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDrZTvb6Bp0PqQvakO+na0jlcJ1eRoJsV9hlN1kJHUJ5oZ8yut9Bdw72rObiik6FahEI4TvvYEJ2BoCkN5WIWTHoBjLMiavlVevwSNAQRjtFrsiEjkZSDJtw/3vf/Wf9X6PhckG89I3ffI7ONcrJTDiUutYuriUetV1nUBdS4Qpfq9QvjXswFOzyTO/O6RL6qS/rXjcG3nR7ZqCJGlqHrOyCeRzMWn70qMpWZ7K+L065V4XxBI/iFOgR7SEjtdRO3KusrA/1oieAc8/M1oeXT2//FO/9o8UkpGCMEsTrZalGRThnde7OMz3bAsffY+4Qmt/W4Ynl29fb8hQv+X/nDPazaV3O0vyVwEwHX1fnD3zd0bs499/qkaf2W0Pn8erfPgHrKtJ6Y8AM0j58bi5iLbDWnrqLob+EkBC/V6EEvej1TuUp0UB9gHySOb69WV+l7HdGuz1PFxtgiG25ZcTKDbr6wk+Z/Re51PMsLT/ymLy+cu38wN1DztrqAOBNmxSUQ8=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "system_vendor": "Xen", "uptime_seconds": 209, "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_all_purge.yml:19 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.048) 0:00:24.063 ********* changed: [managed-node1] => { "changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 1000, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000 } TASK [Add some mapping] ******************************************************** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:24 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.570) 0:00:24.633 ********* ok: [managed-node1] => { "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:03.239754", "end": "2025-05-21 17:57:40.490982", "rc": 0, "start": "2025-05-21 17:57:37.251228" } TASK [Apply role with defaults, should not drop local modifications] *********** task path: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:30 Wednesday 21 May 2025 17:57:40 -0400 (0:00:03.683) 0:00:28.316 ********* 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 17:57:40 -0400 (0:00:00.054) 0:00:28.371 ********* included: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node1 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 17:57:40 -0400 (0:00:00.021) 0:00:28.392 ********* ok: [managed-node1] 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 17:57:41 -0400 (0:00:00.456) 0:00:28.849 ********* included: /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node1 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:57:41 -0400 (0:00:00.026) 0:00:28.875 ********* skipping: [managed-node1] => { "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 17:57:41 -0400 (0:00:00.036) 0:00:28.911 ********* skipping: [managed-node1] => { "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 17:57:41 -0400 (0:00:00.041) 0:00:28.953 ********* skipping: [managed-node1] => { "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 17:57:41 -0400 (0:00:00.040) 0:00:28.994 ********* skipping: [managed-node1] => { "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 17:57:41 -0400 (0:00:00.045) 0:00:29.039 ********* skipping: [managed-node1] => { "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:57:41 -0400 (0:00:00.037) 0:00:29.077 ********* ok: [managed-node1] => { "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:57:44 -0400 (0:00:02.825) 0:00:31.903 ********* skipping: [managed-node1] => { "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:57:44 -0400 (0:00:00.074) 0:00:31.978 ********* fatal: [managed-node1]: 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 PLAY RECAP ********************************************************************* managed-node1 : ok=18 changed=2 unreachable=0 failed=1 skipped=18 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-05-21T21:57:44.245351+00:00Z", "host": "managed-node1", "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-21T21:57:44.204489+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" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Wednesday 21 May 2025 17:57:44 -0400 (0:00:00.043) 0:00:32.021 ********* =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------ 14.44s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Add some mapping -------------------------------------------------------- 3.68s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:24 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 3.53s /tmp/collections-2gp/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.85s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 2.83s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Gathering Facts --------------------------------------------------------- 1.09s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:2 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.62s /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.57s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:19 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 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.43s /tmp/collections-2gp/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.38s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.07s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.06s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.06s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Apply role with defaults, should not drop local modifications ----------- 0.05s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_all_purge.yml:30 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.05s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 fedora.linux_system_roles.selinux : Install SELinux python2 tools ------- 0.05s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.05s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter --- 0.04s /tmp/collections-2gp/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58