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-Nc9 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-Nc9/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-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Saturday 24 May 2025 14:37:37 -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-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:10 Saturday 24 May 2025 14:37:38 -0400 (0:00:01.082) 0:00:01.103 ********** included: fedora.linux_system_roles.certificate for managed-node1 TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.050) 0:00:01.154 ********** included: /tmp/collections-Nc9/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-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.020) 0:00:01.174 ********** 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-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.037) 0:00:01.212 ********** 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-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.432) 0:00:01.645 ********** 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-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.025) 0:00:01.670 ********** 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-Nc9/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-Nc9/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-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 24 May 2025 14:37:38 -0400 (0:00:00.046) 0:00:01.717 ********** 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-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:47 Saturday 24 May 2025 14:37:42 -0400 (0:00:03.788) 0:00:05.506 ********** included: /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml for managed-node1 TASK [Run handlers] ************************************************************ task path: /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Saturday 24 May 2025 14:37:42 -0400 (0:00:00.024) 0:00:05.530 ********** META: triggered running handlers for managed-node1 TASK [Uninstall postgresql] **************************************************** task path: /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Saturday 24 May 2025 14:37:42 -0400 (0:00:00.002) 0:00:05.533 ********** 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-Nc9/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-24T18:37:42.778055+00:00Z", "host": "managed-node1", "message": "Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "start_time": "2025-05-24T18:37:38.994545+00:00Z", "task_name": "Ensure certificate role dependencies are installed", "task_path": "/tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5" }, { "ansible_version": "2.17.12", "end_time": "2025-05-24T18:37:42.849007+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-Nc9/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-24T18:37:42.810364+00:00Z", "task_name": "Uninstall postgresql", "task_path": "/tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 14:37:42 -0400 (0:00:00.040) 0:00:05.574 ********** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.79s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.08s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.43s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Generate certificate using certificate role ----------------------------- 0.05s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:10 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.05s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Uninstall postgresql ---------------------------------------------------- 0.04s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.04s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 fedora.linux_system_roles.certificate : Set flag to indicate system is ostree --- 0.03s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Clean up ---------------------------------------------------------------- 0.02s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:47 fedora.linux_system_roles.certificate : Set version specific variables --- 0.02s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Run handlers ------------------------------------------------------------ 0.00s /tmp/collections-Nc9/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3