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-koT executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, May 9 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_custom_certificate.yml ***************************************** 1 plays in /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml PLAY [Test PostgreSQL server with ssl support using certificate role] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Thursday 22 May 2025 08:34:19 -0400 (0:00:00.021) 0:00:00.021 ********** [WARNING]: Platform linux on host managed-node1 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-node1] TASK [Generate certificate using certificate role] ***************************** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13 Thursday 22 May 2025 08:34:20 -0400 (0:00:01.013) 0:00:01.035 ********** included: fedora.linux_system_roles.certificate for managed-node1 TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Thursday 22 May 2025 08:34:20 -0400 (0:00:00.044) 0:00:01.079 ********** included: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Thursday 22 May 2025 08:34:20 -0400 (0:00:00.019) 0:00:01.098 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Thursday 22 May 2025 08:34:21 -0400 (0:00:00.032) 0:00:01.131 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Thursday 22 May 2025 08:34:21 -0400 (0:00:00.411) 0:00:01.543 ********** ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Thursday 22 May 2025 08:34:21 -0400 (0:00:00.022) 0:00:01.565 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Thursday 22 May 2025 08:34:21 -0400 (0:00:00.038) 0:00:01.603 ********** fatal: [managed-node1]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried TASK [Clean up] **************************************************************** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Thursday 22 May 2025 08:34:25 -0400 (0:00:03.746) 0:00:05.350 ********** included: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml for managed-node1 TASK [Run handlers] ************************************************************ task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Thursday 22 May 2025 08:34:25 -0400 (0:00:00.032) 0:00:05.383 ********** META: triggered running handlers for managed-node1 TASK [Uninstall postgresql] **************************************************** task path: /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Thursday 22 May 2025 08:34:25 -0400 (0:00:00.003) 0:00:05.386 ********** fatal: [managed-node1]: FAILED! => {} MSG: The task includes an option with an undefined variable.. {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined The error appears to be in '/tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml': line 6, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Uninstall postgresql ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=7 changed=0 unreachable=0 failed=2 skipped=1 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-22T12:34:25.295555+00:00Z", "host": "managed-node1", "message": "The task includes an option with an undefined variable.. {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined\n\nThe error appears to be in '/tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Uninstall postgresql\n ^ here\n", "start_time": "2025-05-22T12:34:25.266824+00:00Z", "task_name": "Uninstall postgresql", "task_path": "/tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 22 May 2025 08:34:25 -0400 (0:00:00.030) 0:00:05.416 ********** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.75s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.01s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.41s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Generate certificate using certificate role ----------------------------- 0.04s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.04s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.03s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Clean up ---------------------------------------------------------------- 0.03s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Uninstall postgresql ---------------------------------------------------- 0.03s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 fedora.linux_system_roles.certificate : Set flag to indicate system is ostree --- 0.02s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 fedora.linux_system_roles.certificate : Set version specific variables --- 0.02s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Run handlers ------------------------------------------------------------ 0.00s /tmp/collections-koT/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3