ansible-playbook [core 2.16.16] 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-R3D executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/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-R3D/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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Thursday 19 February 2026 16:49:35 -0500 (0:00:00.022) 0:00:00.022 ***** ok: [managed-node1] TASK [Set expected backend] **************************************************** task path: /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:14 Thursday 19 February 2026 16:49:37 -0500 (0:00:01.149) 0:00:01.171 ***** ok: [managed-node1] => { "ansible_facts": { "nftables_backend": true }, "changed": false } TASK [Find ethernet interfaces with PCI devices] ******************************* task path: /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:18 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.020) 0:00:01.191 ***** 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.005304", "end": "2026-02-19 16:49:37.478607", "rc": 0, "start": "2026-02-19 16:49:37.473303" } TASK [Get temp directory] ****************************************************** task path: /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:38 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.434) 0:00:01.626 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:45 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.031) 0:00:01.657 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:52 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.688 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:59 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.719 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:64 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.031) 0:00:01.751 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:69 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.781 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:80 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.031) 0:00:01.812 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:105 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.843 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:115 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.874 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:125 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.904 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:134 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.031) 0:00:01.935 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:140 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.029) 0:00:01.965 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:01.996 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:156 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.029) 0:00:02.026 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:162 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.030) 0:00:02.057 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:169 Thursday 19 February 2026 16:49:37 -0500 (0:00:00.031) 0:00:02.088 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:179 Thursday 19 February 2026 16:49:38 -0500 (0:00:00.031) 0:00:02.119 ***** 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-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:185 Thursday 19 February 2026 16:49:38 -0500 (0:00:00.030) 0:00:02.150 ***** 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=3 changed=0 unreachable=0 failed=0 skipped=18 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 19 February 2026 16:49:38 -0500 (0:00:00.029) 0:00:02.180 ***** =============================================================================== Gathering Facts --------------------------------------------------------- 1.15s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Find ethernet interfaces with PCI devices ------------------------------- 0.43s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:18 Ensure NetworkManager is installed -------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:59 Get temp directory ------------------------------------------------------ 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:38 Remove interface from internal ------------------------------------------ 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:169 Assert that interface is in iptables ruleset ---------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:162 Debug - get nftables ruleset after and show diff ------------------------ 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:125 Debug - List devices managed by NetworkManager -------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:69 Find the first interface with PCI devices that is managed by NetworkManager --- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:80 Assert that interface is in nftable ruleset ----------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:140 Remove temporary directory ---------------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:179 Get iptables ruleset ---------------------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:156 Debug - get iptables ruleset before ------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:52 Add pci device ethernet controller -------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:105 Debug - get nftables ruleset before ------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:45 Add pci device again ---------------------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:115 Ensure NetworkManager is started ---------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:64 Debug - get iptables ruleset after and show diff ------------------------ 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147 Get nftable ruleset ----------------------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:134 Cleanup ----------------------------------------------------------------- 0.03s /tmp/collections-R3D/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:185