ansible-playbook [core 2.17.12] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-Jsi executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, Apr 22 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles 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-Jsi/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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 Wednesday 21 May 2025 17:57:30 -0400 (0:00:00.017) 0:00:00.017 ********* [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [Ensure SELinux test packages] ******************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:16 Wednesday 21 May 2025 17:57:32 -0400 (0:00:01.137) 0:00:01.155 ********* included: /tmp/collections-Jsi/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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:12 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.021) 0:00:01.176 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__selinux_test_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [Ensure SELinux testing packages] ***************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.031) 0:00:01.207 ********* included: fedora.linux_system_roles.selinux for managed-node1 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.033) 0:00:01.241 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.423) 0:00:01.665 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.021) 0:00:01.686 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.345) 0:00:02.032 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.021) 0:00:02.054 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_python_version is version('3', '<')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 17:57:32 -0400 (0:00:00.016) 0:00:02.070 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 17:57:33 -0400 (0:00:00.898) 0:00:02.969 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_os_family == \"Suse\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 17:57:33 -0400 (0:00:00.017) 0:00:02.986 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_facts[\"os_family\"] == \"RedHat\" and ansible_facts[\"distribution_major_version\"] in [\"8\", \"9\"]", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 Wednesday 21 May 2025 17:57:33 -0400 (0:00:00.014) 0:00:03.001 ********* ok: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:79 Wednesday 21 May 2025 17:57:34 -0400 (0:00:00.794) 0:00:03.796 ********* skipping: [managed-node1] => { "false_condition": "__selinux_is_transactional | d(false)" } TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:84 Wednesday 21 May 2025 17:57:34 -0400 (0:00:00.031) 0:00:03.827 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__selinux_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Wednesday 21 May 2025 17:57:34 -0400 (0:00:00.031) 0:00:03.858 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__selinux_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Wednesday 21 May 2025 17:57:34 -0400 (0:00:00.028) 0:00:03.887 ********* ok: [managed-node1] TASK [Ensure selinux-policy-targeted] ****************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Wednesday 21 May 2025 17:57:35 -0400 (0:00:00.877) 0:00:04.764 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "__selinux_need_policy_targeted | d(false)", "skip_reason": "Conditional result was False" } TASK [Ensure findmnt] ********************************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 Wednesday 21 May 2025 17:57:35 -0400 (0:00:00.047) 0:00:04.812 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Set is_el6 flag] ********************************************************* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:38 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.826) 0:00:05.638 ********* ok: [managed-node1] => { "ansible_facts": { "__selinux_is_el6": false }, "changed": false } TASK [Get local modifications - boolean] *************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:46 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.023) 0:00:05.661 ********* skipping: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:51 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.029) 0:00:05.691 ********* skipping: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:56 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.029) 0:00:05.721 ********* skipping: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:61 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.028) 0:00:05.750 ********* skipping: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.029) 0:00:05.779 ********* ok: [managed-node1] => { "ansible_facts": { "ansible_facts": { "all_ipv4_addresses": [ "10.31.9.231" ], "all_ipv6_addresses": [ "fe80::106d:36ff:fe97:c9c9" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "08/24/2006", "bios_vendor": "Xen", "bios_version": "4.11.amazon", "board_asset_tag": "NA", "board_name": "NA", "board_serial": "NA", "board_vendor": "NA", "board_version": "NA", "chassis_asset_tag": "NA", "chassis_serial": "NA", "chassis_vendor": "Xen", "chassis_version": "NA", "cmdline": { "BOOT_IMAGE": "(hd0,gpt2)/boot/vmlinuz-6.12.0-83.el10.x86_64", "console": "ttyS0,115200n8", "crashkernel": "2G-64G:256M,64G-:512M", "net.ifnames": "0", "rhgb": true, "ro": true, "root": "UUID=eed44663-6e0b-489c-8ced-e1d034f48f5b" }, "date_time": { "date": "2025-05-21", "day": "21", "epoch": "1747864651", "epoch_int": "1747864651", "hour": "17", "iso8601": "2025-05-21T21:57:31Z", "iso8601_basic": "20250521T175731598489", "iso8601_basic_short": "20250521T175731", "iso8601_micro": "2025-05-21T21:57:31.598489Z", "minute": "57", "month": "05", "second": "31", "time": "17:57:31", "tz": "EDT", "tz_dst": "EDT", "tz_offset": "-0400", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "20", "year": "2025" }, "default_ipv4": { "address": "10.31.9.231", "alias": "eth0", "broadcast": "10.31.11.255", "gateway": "10.31.8.1", "interface": "eth0", "macaddress": "12:6d:36:97:c9:c9", "mtu": 9001, "netmask": "255.255.252.0", "network": "10.31.8.0", "prefix": "22", "type": "ether" }, "default_ipv6": {}, "device_links": { "ids": {}, "labels": {}, "masters": {}, "uuids": { "xvda2": [ "eed44663-6e0b-489c-8ced-e1d034f48f5b" ] } }, "devices": { "xvda": { "holders": [], "host": "", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "xvda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "sectors": "2048", "sectorsize": 512, "size": "1.00 MB", "start": "2048", "uuid": null }, "xvda2": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "eed44663-6e0b-489c-8ced-e1d034f48f5b" ] }, "sectors": "524283871", "sectorsize": 512, "size": "250.00 GB", "start": "4096", "uuid": "eed44663-6e0b-489c-8ced-e1d034f48f5b" } }, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "524288000", "sectorsize": "512", "size": "250.00 GB", "support_discard": "512", "vendor": null, "virtual": 1 } }, "discovered_interpreter_python": "/usr/bin/python3.12", "distribution_file_parsed": true, "distribution_file_path": "/etc/centos-release", "distribution_file_variety": "CentOS", "distribution_release": "Stream", "distribution_version": "10", "dns": { "nameservers": [ "10.29.169.13", "10.29.170.12", "10.2.32.1" ], "search": [ "testing-farm.us-east-1.aws.redhat.com" ] }, "domain": "", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "DEBUGINFOD_IMA_CERT_PATH": "/etc/keys/ima:", "DEBUGINFOD_URLS": "https://debuginfod.centos.org/ ", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.31.10.27 42774 22", "SSH_CONNECTION": "10.31.10.27 42774 10.31.9.231 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "5", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3.12" }, "eth0": { "active": true, "device": "eth0", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "off [fixed]", "hsr_dup_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "macsec_hw_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_gro_list": "off", "rx_udp_gro_forwarding": "off", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv4": "on [fixed]", "tx_checksum_ipv6": "on", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "on [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp_segmentation": "on", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "vlan_challenged": "off [fixed]" }, "hw_timestamp_filters": [], "ipv4": { "address": "10.31.9.231", "broadcast": "10.31.11.255", "netmask": "255.255.252.0", "network": "10.31.8.0", "prefix": "22" }, "ipv6": [ { "address": "fe80::106d:36ff:fe97:c9c9", "prefix": "64", "scope": "link" } ], "macaddress": "12:6d:36:97:c9:c9", "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": "nqn.2014-08.org.nvmexpress:uuid:6275e560-31d0-4b96-8db7-7ba41ae960ec", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "6.12.0-83.el10.x86_64", "kernel_version": "#1 SMP PREEMPT_DYNAMIC Fri May 9 19:46:05 UTC 2025", "lo": { "active": true, "device": "lo", "features": { "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hsr_dup_offload": "off [fixed]", "hsr_fwd_offload": "off [fixed]", "hsr_tag_ins_offload": "off [fixed]", "hsr_tag_rm_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "macsec_hw_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_gro_list": "off", "rx_udp_gro_forwarding": "off", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_rx_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_list": "on", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_sctp_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "vlan_challenged": "on [fixed]" }, "hw_timestamp_filters": [], "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "prefix": "8" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "timestamping": [], "type": "loopback" }, "loadavg": { "15m": 0.84814453125, "1m": 4.43896484375, "5m": 2.21923828125 }, "locally_reachable_ips": { "ipv4": [ "10.31.9.231", "127.0.0.0/8", "127.0.0.1" ], "ipv6": [ "::1", "fe80::106d:36ff:fe97:c9c9" ] }, "lsb": {}, "lvm": { "lvs": {}, "pvs": {}, "vgs": {} }, "machine": "x86_64", "machine_id": "ec277aa074cfb3dd5afb98a53e1d0e09", "memfree_mb": 2793, "memory_mb": { "nocache": { "free": 3149, "used": 313 }, "real": { "free": 2793, "total": 3462, "used": 669 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 3462, "module_setup": true, "mounts": [ { "block_available": 63815378, "block_size": 4096, "block_total": 65519099, "block_used": 1703721, "device": "/dev/xvda2", "dump": 0, "fstype": "xfs", "inode_available": 130995831, "inode_total": 131070960, "inode_used": 75129, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "passno": 0, "size_available": 261387788288, "size_total": 268366229504, "uuid": "eed44663-6e0b-489c-8ced-e1d034f48f5b" } ], "nodename": "managed-node1", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,gpt2)/boot/vmlinuz-6.12.0-83.el10.x86_64", "console": [ "tty0", "ttyS0,115200n8" ], "crashkernel": "2G-64G:256M,64G-:512M", "net.ifnames": "0", "rhgb": true, "ro": true, "root": "UUID=eed44663-6e0b-489c-8ced-e1d034f48f5b" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz" ], "processor_cores": 1, "processor_count": 1, "processor_nproc": 2, "processor_threads_per_core": 2, "processor_vcpus": 2, "product_name": "HVM domU", "product_serial": "ec277aa0-74cf-b3dd-5afb-98a53e1d0e09", "product_uuid": "ec277aa0-74cf-b3dd-5afb-98a53e1d0e09", "product_version": "4.11.amazon", "python": { "executable": "/usr/bin/python3.12", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 12, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 12, 10, "final", 0 ] }, "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMtsZeKlxHzNqNagyhxOucDe4D0VjZhO4UI2MtAc4w0W0sxd3UwRU4YlF/0D+4E5WPx3OgZ9gGEyzP3PEv84A6A=", "ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGOXFKm6FO6Lh0lt9YX1+O9i8NKiJYlRUx55lISgnPZy", "ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCMWSioakFhsiwdXwHHzcfuUby7UalkGOA+e23dRP1UMY2SXa5ps/U6ZkwIkOsxIWnMxaBdGvnCPIM5Pjx0YueP+jVisSlVVAJIlvmrA72mi181UgnQ6mUCBo7TASzAm6LsT935muDiNAXbQ4nRQuKdHPi18wmyA7btgCrslE06+UbmlFABKJV22XI6+y68rRp7xzx1BY74YpNe/stfnkhM854XYbiJBuaCIUza11GFawsrmqqI6RfYzUlv+VroJB0o/Tn6OLgqRwzlVZxpTaxGpnR3pMw1uhrEg6yitEMC2mgMiRyYFFB4tHYGVeR1NxpqrTUlPGd4WOEWjrb4X9h/mtroJ7s6ZlWOB8+37IF3Ch543JpthO5sGQVUn/fQe8WldqmI12Lw0oCt8qyOqZZuH84W9jDL0kuA+CGTmv2zhJzfjOCUxKi6Lsd+gKyf4a472RQgsT7MUjJyucJCe4yMs4Gax1X42nqLqfcdPqqT/4Emf2fidK5538t4ZMxlE90=", "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": 231, "user_dir": "/root", "user_gecos": "Super User", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_tech_guest": [ "xen" ], "virtualization_tech_host": [], "virtualization_type": "xen" } }, "changed": false } TASK [Add a Linux System Roles SELinux User] *********************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:23 Wednesday 21 May 2025 17:57:36 -0400 (0:00:00.050) 0:00:05.830 ********* changed: [managed-node1] => { "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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Wednesday 21 May 2025 17:57:37 -0400 (0:00:00.521) 0:00:06.351 ********* 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:00.924678", "end": "2025-05-21 17:57:38.583475", "rc": 0, "start": "2025-05-21 17:57:37.658797" } STDOUT: Port tcp/22100 already defined, modifying instead File context for /tmp/test_dir already defined, modifying instead Login mapping for sar-user is already defined, modifying instead TASK [Backup original /etc/selinux/config] ************************************* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 Wednesday 21 May 2025 17:57:38 -0400 (0:00:01.404) 0:00:07.755 ********* changed: [managed-node1] => { "changed": true, "checksum": "fe28c32d576c2b84ba06b17892b705cb1f5f2514", "dest": "/etc/selinux/config.test_selinux_disabled", "gid": 0, "group": "root", "md5sum": "1e5bcf0ec876d9ee86a4693dce912d28", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 1187, "src": "/etc/selinux/config", "state": "file", "uid": 0 } TASK [Upload testing /etc/selinux/config] ************************************** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 Wednesday 21 May 2025 17:57:39 -0400 (0:00:00.434) 0:00:08.190 ********* changed: [managed-node1] => { "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-1747864659.119287-10781-81036314595115/.source", "state": "file", "uid": 0 } TASK [Switch to permissive to allow login when selinuxfs is not mounted] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:43 Wednesday 21 May 2025 17:57:39 -0400 (0:00:00.707) 0:00:08.898 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "setenforce", "0" ], "delta": "0:00:00.013540", "end": "2025-05-21 17:57:40.097160", "rc": 0, "start": "2025-05-21 17:57:40.083620" } TASK [Get selinuxfs mountpoint] ************************************************ task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:47 Wednesday 21 May 2025 17:57:40 -0400 (0:00:00.372) 0:00:09.270 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "findmnt", "-n", "-t", "selinuxfs", "--output=target" ], "delta": "0:00:00.003841", "end": "2025-05-21 17:57:40.452390", "rc": 0, "start": "2025-05-21 17:57:40.448549" } STDOUT: /sys/fs/selinux TASK [Umount selinux mountpoint to emulate SELinux disabled system /sys/fs/selinux] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 Wednesday 21 May 2025 17:57:40 -0400 (0:00:00.352) 0:00:09.622 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "umount", "-l", "/sys/fs/selinux" ], "delta": "0:00:00.004630", "end": "2025-05-21 17:57:40.815594", "rc": 0, "start": "2025-05-21 17:57:40.810964" } TASK [Include role] ************************************************************ task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:59 Wednesday 21 May 2025 17:57:40 -0400 (0:00:00.359) 0:00:09.982 ********* 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 included: fedora.linux_system_roles.selinux for managed-node1 TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Wednesday 21 May 2025 17:57:40 -0400 (0:00:00.073) 0:00:10.055 ********* included: /tmp/collections-Jsi/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-Jsi/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.031) 0:00:10.087 ********* ok: [managed-node1] TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-Jsi/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.542) 0:00:10.629 ********* included: /tmp/collections-Jsi/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-Jsi/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.024) 0:00:10.653 ********* skipping: [managed-node1] => { "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-Jsi/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.017) 0:00:10.670 ********* skipping: [managed-node1] => { "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-Jsi/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.022) 0:00:10.693 ********* skipping: [managed-node1] => { "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-Jsi/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.023) 0:00:10.717 ********* skipping: [managed-node1] => { "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-Jsi/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.017) 0:00:10.734 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_python_version is version('3', '<')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 21 May 2025 17:57:41 -0400 (0:00:00.015) 0:00:10.749 ********* 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-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 21 May 2025 17:57:42 -0400 (0:00:00.784) 0:00:11.534 ********* skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_os_family == \"Suse\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 21 May 2025 17:57:42 -0400 (0:00:00.017) 0:00:11.552 ********* 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-Jsi/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-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:63 Wednesday 21 May 2025 17:57:42 -0400 (0:00:00.014) 0:00:11.566 ********* fatal: [managed-node1]: FAILED! => {} MSG: The task includes an option with an undefined variable.. 'selinux_reboot_required' is undefined The error appears to be in '/tmp/collections-Jsi/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-node1 : ok=25 changed=3 unreachable=0 failed=1 skipped=18 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-21T21:57:42.448712+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-Jsi/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:42.438145+00:00Z", "task_name": "Ensure grubby used to modify selinux kernel parameter", "task_path": "/tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58" }, { "ansible_version": "2.17.12", "end_time": "2025-05-21T21:57:42.461371+00:00Z", "host": "managed-node1", "message": "The task includes an option with an undefined variable.. 'selinux_reboot_required' is undefined\n\nThe error appears to be in '/tmp/collections-Jsi/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:57:42.452476+00:00Z", "task_name": "Examine the selinux_reboot_required variable", "task_path": "/tmp/collections-Jsi/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:57:42 -0400 (0:00:00.010) 0:00:11.576 ********* =============================================================================== Add some mapping -------------------------------------------------------- 1.40s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:27 Gathering Facts --------------------------------------------------------- 1.14s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:2 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.90s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.88s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:96 Ensure findmnt ---------------------------------------------------------- 0.83s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:29 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 0.79s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:65 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.78s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Upload testing /etc/selinux/config -------------------------------------- 0.71s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:38 fedora.linux_system_roles.selinux : Ensure ansible_facts used by role --- 0.54s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Add a Linux System Roles SELinux User ----------------------------------- 0.52s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:23 Backup original /etc/selinux/config ------------------------------------- 0.43s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:32 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.42s /tmp/collections-Jsi/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.37s /tmp/collections-Jsi/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.36s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:51 Get selinuxfs mountpoint ------------------------------------------------ 0.35s /tmp/collections-Jsi/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.35s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Include role ------------------------------------------------------------ 0.07s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/tests_selinux_disabled.yml:59 Unset facts used above -------------------------------------------------- 0.05s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:66 Ensure selinux-policy-targeted ------------------------------------------ 0.05s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:22 Ensure SELinux testing packages ----------------------------------------- 0.03s /tmp/collections-Jsi/ansible_collections/fedora/linux_system_roles/tests/selinux/set_selinux_variables.yml:17