ansible-playbook [core 2.17.14] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-JW8 executable location = /usr/local/bin/ansible-playbook python version = 3.12.12 (main, Jan 16 2026, 00:00:00) [GCC 14.3.1 20251022 (Red Hat 14.3.1-4)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_interface_pci.yml ********************************************** 1 plays in /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml PLAY [Test interfaces with PCI ids] ******************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Saturday 21 March 2026 01:47:04 -0400 (0:00:00.029) 0:00:00.030 ******** [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 [Set expected backend] **************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:13 Saturday 21 March 2026 01:47:05 -0400 (0:00:01.187) 0:00:01.217 ******** ok: [managed-node1] => { "ansible_facts": { "nftables_backend": true }, "changed": false } TASK [Find ethernet interfaces with PCI devices] ******************************* task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:17 Saturday 21 March 2026 01:47:05 -0400 (0:00:00.020) 0:00:01.237 ******** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail\nfind /sys/class/net -name 'e*' | while read -r iface_path; do\n # containers only have virtual devices; for PCI we need a real one\n if [ -n \"$iface_path\" ] && [ -e \"$iface_path/device/vendor\" ] && [ -e \"$iface_path/device/device\" ]; then\n echo \"$iface_path\"\n fi\ndone\n", "delta": "0:00:00.004980", "end": "2026-03-21 01:47:06.048592", "rc": 0, "start": "2026-03-21 01:47:06.043612" } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:32 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.468) 0:00:01.705 ******** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:37 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.455) 0:00:02.161 ******** ok: [managed-node1] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [Get temp directory] ****************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:49 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.031) 0:00:02.193 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug - get nftables ruleset before] ************************************* task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:56 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.040) 0:00:02.234 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug - get iptables ruleset before] ************************************* task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:63 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.033) 0:00:02.267 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Ensure NetworkManager is installed] ************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:70 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.031) 0:00:02.299 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Ensure NetworkManager is started] **************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:77 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.033) 0:00:02.333 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug - List devices managed by NetworkManager] ************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:83 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.030) 0:00:02.363 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Find the first interface with PCI devices that is managed by NetworkManager] *** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:94 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.033) 0:00:02.396 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Add pci device ethernet controller] ************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:119 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.036) 0:00:02.433 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Add pci device again] **************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:128 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.032) 0:00:02.465 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug - get nftables ruleset after and show diff] ************************ task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.036) 0:00:02.501 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Get nftable ruleset] ***************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:146 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.037) 0:00:02.539 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Assert that interface is in nftable ruleset] ***************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:152 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.030) 0:00:02.569 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug - get iptables ruleset after and show diff] ************************ task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:159 Saturday 21 March 2026 01:47:06 -0400 (0:00:00.028) 0:00:02.597 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Get iptables ruleset] **************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:168 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.031) 0:00:02.629 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Assert that interface is in iptables ruleset] **************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:174 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.028) 0:00:02.658 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Remove interface from internal] ****************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:181 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.030) 0:00:02.688 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Remove temporary directory] ********************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:190 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.028) 0:00:02.717 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Stop NetworkManager if it was not started by the test] ******************* task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:196 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.028) 0:00:02.746 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Remove NetworkManager if it was not installed by the test] *************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:204 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.030) 0:00:02.776 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Cleanup] ***************************************************************** task path: /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:213 Saturday 21 March 2026 01:47:07 -0400 (0:00:00.033) 0:00:02.809 ******** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node1 : ok=5 changed=0 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 21 March 2026 01:47:07 -0400 (0:00:00.039) 0:00:02.849 ******** =============================================================================== Gathering Facts --------------------------------------------------------- 1.19s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Find ethernet interfaces with PCI devices ------------------------------- 0.47s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:17 Check if system is ostree ----------------------------------------------- 0.46s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:32 Get temp directory ------------------------------------------------------ 0.04s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:49 Cleanup ----------------------------------------------------------------- 0.04s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:213 Debug - get nftables ruleset after and show diff ------------------------ 0.04s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Find the first interface with PCI devices that is managed by NetworkManager --- 0.04s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:94 Add pci device again ---------------------------------------------------- 0.04s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:128 Ensure NetworkManager is installed -------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:70 Debug - get nftables ruleset before ------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:56 Remove NetworkManager if it was not installed by the test --------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:204 Debug - List devices managed by NetworkManager -------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:83 Add pci device ethernet controller -------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:119 Debug - get iptables ruleset before ------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:63 Set flag to indicate system is ostree ----------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:37 Debug - get iptables ruleset after and show diff ------------------------ 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:159 Get nftable ruleset ----------------------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:146 Stop NetworkManager if it was not started by the test ------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:196 Assert that interface is in iptables ruleset ---------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:174 Ensure NetworkManager is started ---------------------------------------- 0.03s /tmp/collections-JW8/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:77