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-Bnc executable location = /usr/local/bin/ansible-playbook python version = 3.12.12 (main, Mar 9 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-Bnc/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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Monday 30 March 2026 18:33:27 -0400 (0:00:00.037) 0:00:00.037 ********** [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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:18 Monday 30 March 2026 18:33:28 -0400 (0:00:01.188) 0:00:01.225 ********** ok: [managed-node1] => { "ansible_facts": { "nftables_backend": true }, "changed": false } TASK [Find ethernet interfaces with PCI devices] ******************************* task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:22 Monday 30 March 2026 18:33:28 -0400 (0:00:00.021) 0:00:01.246 ********** 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.004954", "end": "2026-03-30 18:33:28.848208", "rc": 0, "start": "2026-03-30 18:33:28.843254" } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:37 Monday 30 March 2026 18:33:28 -0400 (0:00:00.459) 0:00:01.706 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:42 Monday 30 March 2026 18:33:29 -0400 (0:00:00.519) 0:00:02.226 ********** ok: [managed-node1] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [Get temp directory] ****************************************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:54 Monday 30 March 2026 18:33:29 -0400 (0:00:00.019) 0:00:02.246 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:61 Monday 30 March 2026 18:33:29 -0400 (0:00:00.029) 0:00:02.275 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:68 Monday 30 March 2026 18:33:29 -0400 (0:00:00.028) 0:00:02.304 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:75 Monday 30 March 2026 18:33:29 -0400 (0:00:00.030) 0:00:02.335 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:82 Monday 30 March 2026 18:33:29 -0400 (0:00:00.029) 0:00:02.364 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:88 Monday 30 March 2026 18:33:29 -0400 (0:00:00.029) 0:00:02.394 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:99 Monday 30 March 2026 18:33:29 -0400 (0:00:00.030) 0:00:02.425 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:124 Monday 30 March 2026 18:33:29 -0400 (0:00:00.037) 0:00:02.462 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:133 Monday 30 March 2026 18:33:29 -0400 (0:00:00.053) 0:00:02.515 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Confirm changes were not made and short circuit is false] **************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:141 Monday 30 March 2026 18:33:29 -0400 (0:00:00.033) 0:00:02.549 ********** 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 with previous replaced] ***************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147 Monday 30 March 2026 18:33:29 -0400 (0:00:00.031) 0:00:02.581 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Confirm changes were not made and short circuit is false] **************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:156 Monday 30 March 2026 18:33:29 -0400 (0:00:00.032) 0:00:02.613 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:162 Monday 30 March 2026 18:33:29 -0400 (0:00:00.034) 0:00:02.648 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:171 Monday 30 March 2026 18:33:29 -0400 (0:00:00.031) 0:00:02.679 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:177 Monday 30 March 2026 18:33:29 -0400 (0:00:00.028) 0:00:02.708 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:184 Monday 30 March 2026 18:33:29 -0400 (0:00:00.029) 0:00:02.737 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:193 Monday 30 March 2026 18:33:29 -0400 (0:00:00.028) 0:00:02.765 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:199 Monday 30 March 2026 18:33:29 -0400 (0:00:00.028) 0:00:02.794 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:206 Monday 30 March 2026 18:33:30 -0400 (0:00:00.029) 0:00:02.823 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Confirm removal was made] ************************************************ task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:214 Monday 30 March 2026 18:33:30 -0400 (0:00:00.029) 0:00:02.853 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug0] ****************************************************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:218 Monday 30 March 2026 18:33:30 -0400 (0:00:00.031) 0:00:02.884 ********** skipping: [managed-node1] => { "false_condition": "find_iface_paths.stdout_lines | length > 0" } TASK [Remove interface from internal again] ************************************ task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:222 Monday 30 March 2026 18:33:30 -0400 (0:00:00.029) 0:00:02.914 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Confirm no removal changes were made] ************************************ task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:230 Monday 30 March 2026 18:33:30 -0400 (0:00:00.029) 0:00:02.944 ********** 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 with previous replaced] ******************* task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:236 Monday 30 March 2026 18:33:30 -0400 (0:00:00.029) 0:00:02.973 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "find_iface_paths.stdout_lines | length > 0", "skip_reason": "Conditional result was False" } TASK [Debug1] ****************************************************************** task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:245 Monday 30 March 2026 18:33:30 -0400 (0:00:00.030) 0:00:03.004 ********** skipping: [managed-node1] => { "false_condition": "find_iface_paths.stdout_lines | length > 0" } TASK [Confirm no removal changes were made with previous replaced] ************* task path: /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:249 Monday 30 March 2026 18:33:30 -0400 (0:00:00.034) 0:00:03.038 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:256 Monday 30 March 2026 18:33:30 -0400 (0:00:00.047) 0:00:03.086 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:262 Monday 30 March 2026 18:33:30 -0400 (0:00:00.035) 0:00:03.121 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:270 Monday 30 March 2026 18:33:30 -0400 (0:00:00.033) 0:00:03.154 ********** 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-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:279 Monday 30 March 2026 18:33:30 -0400 (0:00:00.045) 0:00:03.200 ********** 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=30 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Monday 30 March 2026 18:33:30 -0400 (0:00:00.042) 0:00:03.242 ********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.19s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:3 Check if system is ostree ----------------------------------------------- 0.52s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:37 Find ethernet interfaces with PCI devices ------------------------------- 0.46s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:22 Add pci device ethernet controller -------------------------------------- 0.05s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:124 Confirm no removal changes were made with previous replaced ------------- 0.05s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:249 Remove NetworkManager if it was not installed by the test --------------- 0.05s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:270 Cleanup ----------------------------------------------------------------- 0.04s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:279 Find the first interface with PCI devices that is managed by NetworkManager --- 0.04s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:99 Remove temporary directory ---------------------------------------------- 0.04s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:256 Confirm changes were not made and short circuit is false ---------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:156 Debug1 ------------------------------------------------------------------ 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:245 Stop NetworkManager if it was not started by the test ------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:262 Add pci device again ---------------------------------------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:133 Add pci device again with previous replaced ----------------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:147 Confirm changes were not made and short circuit is false ---------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:141 Confirm removal was made ------------------------------------------------ 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:214 Debug - get nftables ruleset after and show diff ------------------------ 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:162 Remove interface from internal with previous replaced ------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:236 Debug - List devices managed by NetworkManager -------------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:88 Debug - get iptables ruleset before ------------------------------------- 0.03s /tmp/collections-Bnc/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_interface_pci.yml:68