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-QIh 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-QIh/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-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Tuesday 17 February 2026 17:00:57 -0500 (0:00:00.030) 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-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:14 Tuesday 17 February 2026 17:00:58 -0500 (0:00:01.252) 0:00:01.282 ****** ok: [managed-node1] => { "ansible_facts": { "nftables_backend": true }, "changed": false } TASK [Find ethernet interface] ************************************************* task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:18 Tuesday 17 February 2026 17:00:58 -0500 (0:00:00.021) 0:00:01.304 ****** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail\nI=$(find /sys/class/net -name 'e*' | head -n1)\n# containers only have virtual devices; for PCI we need a real one\nif [ -n \"$I\" ] && [ -e \"$I/device/vendor\" ]; then\n echo \"$I\"\nfi\n", "delta": "0:00:00.006057", "end": "2026-02-17 17:00:58.867679", "rc": 0, "start": "2026-02-17 17:00:58.861622" } TASK [Debug] ******************************************************************* task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:29 Tuesday 17 February 2026 17:00:58 -0500 (0:00:00.492) 0:00:01.796 ****** ok: [managed-node1] => { "changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\nip addr\nls -alrtF /sys/class/net\nls -alrtF /sys/class/net/*/device/vendor || :\nls -alrtF /sys/class/net/*/device/device || :\n", "delta": "0:00:00.009478", "end": "2026-02-17 17:00:59.275606", "rc": 0, "start": "2026-02-17 17:00:59.266128" } STDERR: + exec + ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eth0: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 02:0e:13:c1:57:0d brd ff:ff:ff:ff:ff:ff altname enX0 altname enx020e13c1570d inet 10.31.45.209/22 brd 10.31.47.255 scope global dynamic noprefixroute eth0 valid_lft 3404sec preferred_lft 3404sec inet6 fe80::e:13ff:fec1:570d/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: eth1: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 02:64:cf:c6:0a:73 brd ff:ff:ff:ff:ff:ff altname enX1 altname enx0264cfc60a73 inet 10.31.46.113/22 brd 10.31.47.255 scope global dynamic noprefixroute eth1 valid_lft 3404sec preferred_lft 3404sec inet6 fe80::64:cfff:fec6:a73/64 scope link noprefixroute valid_lft forever preferred_lft forever + ls -alrtF /sys/class/net total 0 drwxr-xr-x. 58 root root 0 Feb 17 16:57 ../ lrwxrwxrwx. 1 root root 0 Feb 17 16:57 eth1 -> ../../devices/vif-1/net/eth1/ lrwxrwxrwx. 1 root root 0 Feb 17 16:57 eth0 -> ../../devices/vif-0/net/eth0/ lrwxrwxrwx. 1 root root 0 Feb 17 16:57 lo -> ../../devices/virtual/net/lo/ drwxr-xr-x. 2 root root 0 Feb 17 17:00 ./ + ls -alrtF '/sys/class/net/*/device/vendor' ls: cannot access '/sys/class/net/*/device/vendor': No such file or directory + : + ls -alrtF '/sys/class/net/*/device/device' ls: cannot access '/sys/class/net/*/device/device': No such file or directory + : TASK [Get temp directory] ****************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:44 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.409) 0:00:02.206 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Debug - get nftables ruleset before] ************************************* task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:51 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.021) 0:00:02.227 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Determine interface vendor/product ID] *********************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:58 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.017) 0:00:02.245 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Install NetworkManager] ************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:72 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.012) 0:00:02.257 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Start NetworkManager] **************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:77 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.012) 0:00:02.270 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Add pci device ethernet controller] ************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:82 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.015) 0:00:02.286 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Add pci device again] **************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:92 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.011) 0:00:02.298 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Debug - get nftables ruleset after and show diff] ************************ task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:102 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.011) 0:00:02.310 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Get nftable ruleset] ***************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:111 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.011) 0:00:02.321 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Assert that interface is in nftable ruleset] ***************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:117 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.016) 0:00:02.338 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Get iptables ruleset] **************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:124 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.011) 0:00:02.350 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Assert that interface is in iptables ruleset] **************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:130 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.011) 0:00:02.362 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Remove interface from internal] ****************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.015) 0:00:02.377 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } TASK [Cleanup] ***************************************************************** task path: /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147 Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.014) 0:00:02.391 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface.stdout != \"\"", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node1 : ok=4 changed=0 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 17 February 2026 17:00:59 -0500 (0:00:00.009) 0:00:02.401 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.25s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Find ethernet interface ------------------------------------------------- 0.49s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:18 Debug ------------------------------------------------------------------- 0.41s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:29 Get temp directory ------------------------------------------------------ 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:44 Set expected backend ---------------------------------------------------- 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:14 Debug - get nftables ruleset before ------------------------------------- 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:51 Get nftable ruleset ----------------------------------------------------- 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:111 Start NetworkManager ---------------------------------------------------- 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:77 Assert that interface is in iptables ruleset ---------------------------- 0.02s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:130 Remove interface from internal ------------------------------------------ 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Install NetworkManager -------------------------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:72 Determine interface vendor/product ID ----------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:58 Add pci device ethernet controller -------------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:82 Get iptables ruleset ---------------------------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:124 Add pci device again ---------------------------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:92 Debug - get nftables ruleset after and show diff ------------------------ 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:102 Assert that interface is in nftable ruleset ----------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:117 Cleanup ----------------------------------------------------------------- 0.01s /tmp/collections-QIh/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147