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-YOm executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, Apr 22 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] (/usr/bin/python3.12) jinja version = 3.1.5 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-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Tuesday 20 May 2025 13:43:12 -0400 (0:00:00.018) 0:00:00.018 *********** [WARNING]: Platform linux on host managed-node2 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-node2] TASK [Verify used firewalld zones] ********************************************* task path: /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Tuesday 20 May 2025 13:43:13 -0400 (0:00:01.201) 0:00:01.220 *********** ERROR! the role 'linux-system-roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall The error appears to be in '/tmp/collections-YOm/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-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall\n\nThe error appears to be in '/tmp/collections-YOm/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-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Tuesday 20 May 2025 13:43:13 -0400 (0:00:00.038) 0:00:01.259 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=customzone" ], "delta": "0:00:00.454628", "end": "2025-05-20 13:43:14.392221", "failed_when_result": false, "rc": 112, "start": "2025-05-20 13:43:13.937593" } STDERR: INVALID_ZONE: get_zone(): customzone MSG: non-zero return code TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Tuesday 20 May 2025 13:43:14 -0400 (0:00:00.907) 0:00:02.167 *********** 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.599581", "end": "2025-05-20 13:43:15.366556", "rc": 0, "start": "2025-05-20 13:43:14.766975" } STDERR: NO_DEFAULTS: internal NO_DEFAULTS: external NO_DEFAULTS: trusted TASK [Reload firewall] ********************************************************* task path: /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175 Tuesday 20 May 2025 13:43:15 -0400 (0:00:00.977) 0:00:03.145 *********** 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-YOm/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:43:13.536263+00:00Z", "host": "managed-node2", "message": "No message could be found", "start_time": "2025-05-20T17:43:13.501089+00:00Z", "task_name": "Verify used firewalld zones", "task_path": "/tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15" }, { "ansible_version": "2.17.12", "end_time": "2025-05-20T17:43:15.457384+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-YOm/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:43:15.425795+00:00Z", "task_name": "Reload firewall", "task_path": "/tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 20 May 2025 13:43:15 -0400 (0:00:00.033) 0:00:03.178 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.20s /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Reset to zone defaults -------------------------------------------------- 0.98s /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Remove customzone zone -------------------------------------------------- 0.91s /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Verify used firewalld zones --------------------------------------------- 0.04s /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Reload firewall --------------------------------------------------------- 0.03s /tmp/collections-YOm/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175