ansible-playbook [core 2.17.12] 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-dgV executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, Apr 22 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/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_zone.yml ******************************************************* 1 plays in /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Tuesday 20 May 2025 13:45:05 -0400 (0:00:00.019) 0:00:00.019 *********** [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.9, 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-node2] TASK [Verify used firewalld zones] ********************************************* task path: /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Tuesday 20 May 2025 13:45:06 -0400 (0:00:01.098) 0:00:01.117 *********** ERROR! the role 'linux-system-roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall The error appears to be in '/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml': line 17, column 19, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: linux-system-roles.firewall ^ here fatal: [managed-node2]: FAILED! => { "changed": false, "reason": "the role 'linux-system-roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall\n\nThe error appears to be in '/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml': line 17, column 19, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n include_role:\n name: linux-system-roles.firewall\n ^ here\n" } TASK [Remove customzone zone] ************************************************** task path: /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Tuesday 20 May 2025 13:45:06 -0400 (0:00:00.041) 0:00:01.159 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=customzone" ], "delta": "0:00:00.483764", "end": "2025-05-20 13:45:07.195513", "failed_when_result": false, "rc": 112, "start": "2025-05-20 13:45:06.711749" } STDERR: INVALID_ZONE: get_zone(): customzone MSG: non-zero return code TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Tuesday 20 May 2025 13:45:07 -0400 (0:00:00.956) 0:00:02.116 *********** ok: [managed-node2] => { "changed": false, "cmd": "firewall-offline-cmd --load-zone-defaults=internal\nfirewall-offline-cmd --load-zone-defaults=external\nfirewall-offline-cmd --load-zone-defaults=trusted || true\n", "delta": "0:00:00.560482", "end": "2025-05-20 13:45:08.140829", "rc": 0, "start": "2025-05-20 13:45:07.580347" } STDERR: NO_DEFAULTS: internal NO_DEFAULTS: external NO_DEFAULTS: trusted TASK [Reload firewall] ********************************************************* task path: /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175 Tuesday 20 May 2025 13:45:08 -0400 (0:00:00.944) 0:00:03.061 *********** fatal: [managed-node2]: FAILED! => {} MSG: The conditional check '__firewall_is_booted' failed. The error was: error while evaluating conditional (__firewall_is_booted): '__firewall_is_booted' is undefined The error appears to be in '/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml': line 175, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Reload firewall ^ here PLAY RECAP ********************************************************************* managed-node2 : ok=3 changed=0 unreachable=0 failed=2 skipped=0 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-20T17:45:06.289578+00:00Z", "host": "managed-node2", "message": "No message could be found", "start_time": "2025-05-20T17:45:06.251580+00:00Z", "task_name": "Verify used firewalld zones", "task_path": "/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15" }, { "ansible_version": "2.17.12", "end_time": "2025-05-20T17:45:08.227099+00:00Z", "host": "managed-node2", "message": "The conditional check '__firewall_is_booted' failed. The error was: error while evaluating conditional (__firewall_is_booted): '__firewall_is_booted' is undefined\n\nThe error appears to be in '/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml': line 175, column 15, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Reload firewall\n ^ here\n", "start_time": "2025-05-20T17:45:08.195198+00:00Z", "task_name": "Reload firewall", "task_path": "/tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 20 May 2025 13:45:08 -0400 (0:00:00.033) 0:00:03.095 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.10s /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Remove customzone zone -------------------------------------------------- 0.96s /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Reset to zone defaults -------------------------------------------------- 0.95s /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Verify used firewalld zones --------------------------------------------- 0.04s /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Reload firewall --------------------------------------------------------- 0.03s /tmp/collections-dgV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175