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-wgp 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 '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-wgp/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-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Thursday 19 June 2025 07:25:53 -0400 (0:00:00.022) 0:00:00.022 ********* ok: [managed-node1] TASK [Generate certificate using certificate role] ***************************** task path: /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13 Thursday 19 June 2025 07:25:54 -0400 (0:00:01.109) 0:00:01.132 ********* ERROR! the role 'fedora.linux_system_roles.certificate' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql The error appears to be in '/tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml': line 15, column 19, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.certificate ^ here TASK [Clean up] **************************************************************** task path: /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Thursday 19 June 2025 07:25:54 -0400 (0:00:00.015) 0:00:01.147 ********* included: /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml for managed-node1 TASK [Run handlers] ************************************************************ task path: /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Thursday 19 June 2025 07:25:54 -0400 (0:00:00.024) 0:00:01.172 ********* META: triggered running handlers for managed-node1 TASK [Uninstall postgresql] **************************************************** task path: /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Thursday 19 June 2025 07:25:54 -0400 (0:00:00.002) 0:00:01.175 ********* fatal: [managed-node1]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined. '__postgresql_packages' is undefined. {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined. '__postgresql_packages' is undefined The error appears to be in '/tmp/collections-wgp/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=2 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-06-19T11:25:54.875024+00:00Z", "host": "managed-node1", "message": "The task includes an option with an undefined variable. The error was: {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined. '__postgresql_packages' is undefined. {{ __postgresql_packages + ['postgresql', 'postgresql-private-libs'] }}: '__postgresql_packages' is undefined. '__postgresql_packages' is undefined\n\nThe error appears to be in '/tmp/collections-wgp/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-06-19T11:25:54.823866+00:00Z", "task_name": "Uninstall postgresql", "task_path": "/tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Thursday 19 June 2025 07:25:54 -0400 (0:00:00.052) 0:00:01.228 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.11s /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Uninstall postgresql ---------------------------------------------------- 0.05s /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Clean up ---------------------------------------------------------------- 0.02s /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Generate certificate using certificate role ----------------------------- 0.02s /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13 Run handlers ------------------------------------------------------------ 0.00s /tmp/collections-wgp/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3