ansible-playbook [core 2.16.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-5Of 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_zone.yml ******************************************************* 1 plays in /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Tuesday 20 May 2025 13:44:43 -0400 (0:00:00.018) 0:00:00.018 *********** ok: [managed-node2] TASK [Verify used firewalld zones] ********************************************* task path: /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Tuesday 20 May 2025 13:44:44 -0400 (0:00:01.046) 0:00:01.064 *********** ERROR! the role 'linux-system-roles.firewall' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall The error appears to be in '/tmp/collections-5Of/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 TASK [Remove customzone zone] ************************************************** task path: /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Tuesday 20 May 2025 13:44:44 -0400 (0:00:00.070) 0:00:01.135 *********** ok: [managed-node2] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=customzone" ], "delta": "0:00:00.438968", "end": "2025-05-20 13:44:45.074512", "failed_when_result": false, "rc": 112, "start": "2025-05-20 13:44:44.635544" } STDERR: INVALID_ZONE: get_zone(): customzone MSG: non-zero return code TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Tuesday 20 May 2025 13:44:45 -0400 (0:00:00.894) 0:00:02.029 *********** 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.769508", "end": "2025-05-20 13:44:46.198044", "rc": 0, "start": "2025-05-20 13:44:45.428536" } STDERR: NO_DEFAULTS: internal NO_DEFAULTS: external NO_DEFAULTS: trusted TASK [Reload firewall] ********************************************************* task path: /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175 Tuesday 20 May 2025 13:44:46 -0400 (0:00:01.121) 0:00:03.151 *********** 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. '__firewall_is_booted' is undefined The error appears to be in '/tmp/collections-5Of/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=1 skipped=0 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.16.14", "end_time": "2025-05-20T17:44:46.276945+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. '__firewall_is_booted' is undefined\n\nThe error appears to be in '/tmp/collections-5Of/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:44:46.245796+00:00Z", "task_name": "Reload firewall", "task_path": "/tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Tuesday 20 May 2025 13:44:46 -0400 (0:00:00.032) 0:00:03.184 *********** =============================================================================== Reset to zone defaults -------------------------------------------------- 1.12s /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:167 Gathering Facts --------------------------------------------------------- 1.05s /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Remove customzone zone -------------------------------------------------- 0.89s /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:161 Verify used firewalld zones --------------------------------------------- 0.07s /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:15 Reload firewall --------------------------------------------------------- 0.03s /tmp/collections-5Of/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:175