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-jrV 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-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Tuesday 20 May 2025 13:36:02 -0400 (0:00:00.022) 0:00:00.022 *********** [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-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Tuesday 20 May 2025 13:36:04 -0400 (0:00:01.203) 0:00:01.225 *********** ERROR! the role 'linux-system-roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall The error appears to be in '/tmp/collections-jrV/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-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall\n\nThe error appears to be in '/tmp/collections-jrV/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-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Tuesday 20 May 2025 13:36:04 -0400 (0:00:00.047) 0:00:01.272 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=customzone" ], "delta": "0:00:00.551551", "end": "2025-05-20 13:36:05.185582", "failed_when_result": false, "rc": 112, "start": "2025-05-20 13:36:04.634031" } STDERR: INVALID_ZONE: get_zone(): customzone MSG: non-zero return code TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Tuesday 20 May 2025 13:36:05 -0400 (0:00:01.093) 0:00:02.366 *********** 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.646703", "end": "2025-05-20 13:36:06.267749", "rc": 0, "start": "2025-05-20 13:36:05.621046" } STDERR: NO_DEFAULTS: internal NO_DEFAULTS: external NO_DEFAULTS: trusted TASK [Reload firewall] ********************************************************* task path: /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175 Tuesday 20 May 2025 13:36:06 -0400 (0:00:01.080) 0:00:03.447 *********** 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-jrV/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:36:04.148041+00:00Z", "host": "managed-node2", "message": "No message could be found", "start_time": "2025-05-20T17:36:04.104983+00:00Z", "task_name": "Verify used firewalld zones", "task_path": "/tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15" }, { "ansible_version": "2.17.12", "end_time": "2025-05-20T17:36:06.368632+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-jrV/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:36:06.326839+00:00Z", "task_name": "Reload firewall", "task_path": "/tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 20 May 2025 13:36:06 -0400 (0:00:00.043) 0:00:03.491 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.20s /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Remove customzone zone -------------------------------------------------- 1.09s /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Reset to zone defaults -------------------------------------------------- 1.08s /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Verify used firewalld zones --------------------------------------------- 0.05s /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Reload firewall --------------------------------------------------------- 0.04s /tmp/collections-jrV/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175