ansible-playbook [core 2.16.17] 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-HCU 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-HCU/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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Wednesday 18 March 2026 19:24:22 -0400 (0:00:00.021) 0:00:00.021 ******* ok: [managed-node2] TASK [Set expected backend] **************************************************** task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:13 Wednesday 18 March 2026 19:24:24 -0400 (0:00:01.070) 0:00:01.091 ******* ok: [managed-node2] => { "ansible_facts": { "nftables_backend": true }, "changed": false } TASK [Find ethernet interfaces with PCI devices] ******************************* task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:17 Wednesday 18 March 2026 19:24:24 -0400 (0:00:00.023) 0:00:01.115 ******* ok: [managed-node2] => { "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.004911", "end": "2026-03-18 19:24:24.500370", "rc": 0, "start": "2026-03-18 19:24:24.495459" } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:32 Wednesday 18 March 2026 19:24:24 -0400 (0:00:00.493) 0:00:01.608 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:37 Wednesday 18 March 2026 19:24:24 -0400 (0:00:00.435) 0:00:02.044 ******* ok: [managed-node2] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [Get temp directory] ****************************************************** task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:49 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.023) 0:00:02.068 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:56 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.038) 0:00:02.107 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:63 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.034) 0:00:02.141 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:70 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.032) 0:00:02.174 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:77 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.034) 0:00:02.208 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:83 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.031) 0:00:02.240 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:94 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.031) 0:00:02.271 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:119 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.032) 0:00:02.304 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:128 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.034) 0:00:02.338 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.033) 0:00:02.372 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:146 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.034) 0:00:02.407 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:152 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.037) 0:00:02.444 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:159 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.046) 0:00:02.491 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:168 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.052) 0:00:02.544 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:174 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.056) 0:00:02.600 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:181 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.057) 0:00:02.658 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:190 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.051) 0:00:02.709 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:196 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.047) 0:00:02.757 ******* skipping: [managed-node2] => { "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-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:204 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.047) 0:00:02.805 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Cleanup] ***************************************************************** task path: /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:213 Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.046) 0:00:02.851 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node2 : 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 ******************************************************************** Wednesday 18 March 2026 19:24:25 -0400 (0:00:00.045) 0:00:02.897 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 1.07s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Find ethernet interfaces with PCI devices ------------------------------- 0.49s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:17 Check if system is ostree ----------------------------------------------- 0.44s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:32 Assert that interface is in iptables ruleset ---------------------------- 0.06s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:174 Get iptables ruleset ---------------------------------------------------- 0.06s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:168 Debug - get iptables ruleset after and show diff ------------------------ 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:159 Remove interface from internal ------------------------------------------ 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:181 Remove temporary directory ---------------------------------------------- 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:190 Stop NetworkManager if it was not started by the test ------------------- 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:196 Assert that interface is in nftable ruleset ----------------------------- 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:152 Remove NetworkManager if it was not installed by the test --------------- 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:204 Cleanup ----------------------------------------------------------------- 0.05s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:213 Get temp directory ------------------------------------------------------ 0.04s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:49 Get nftable ruleset ----------------------------------------------------- 0.04s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:146 Debug - get nftables ruleset after and show diff ------------------------ 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:137 Debug - get nftables ruleset before ------------------------------------- 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:56 Add pci device ethernet controller -------------------------------------- 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:119 Ensure NetworkManager is installed -------------------------------------- 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:70 Add pci device again ---------------------------------------------------- 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:128 Find the first interface with PCI devices that is managed by NetworkManager --- 0.03s /tmp/collections-HCU/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:94