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-fzc 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 '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-fzc/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-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Thursday 19 June 2025 07:25:59 -0400 (0:00:00.019) 0:00:00.019 ********* [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-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13 Thursday 19 June 2025 07:26:00 -0400 (0:00:01.061) 0:00:01.080 ********* ERROR! the role 'fedora.linux_system_roles.certificate' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql The error appears to be in '/tmp/collections-fzc/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 fatal: [managed-node1]: FAILED! => { "changed": false, "reason": "the role 'fedora.linux_system_roles.certificate' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql\n\nThe error appears to be in '/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml': line 15, 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: fedora.linux_system_roles.certificate\n ^ here\n" } TASK [Clean up] **************************************************************** task path: /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Thursday 19 June 2025 07:26:00 -0400 (0:00:00.015) 0:00:01.096 ********* included: /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml for managed-node1 TASK [Run handlers] ************************************************************ task path: /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Thursday 19 June 2025 07:26:00 -0400 (0:00:00.022) 0:00:01.119 ********* META: triggered running handlers for managed-node1 TASK [Uninstall postgresql] **************************************************** task path: /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Thursday 19 June 2025 07:26:00 -0400 (0:00:00.016) 0:00:01.135 ********* 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-fzc/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=2 skipped=0 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-06-19T11:26:00.900910+00:00Z", "host": "managed-node1", "message": "No message could be found", "start_time": "2025-06-19T11:26:00.888803+00:00Z", "task_name": "Generate certificate using certificate role", "task_path": "/tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13" }, { "ansible_version": "2.17.12", "end_time": "2025-06-19T11:26:00.977080+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-fzc/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:26:00.943515+00:00Z", "task_name": "Uninstall postgresql", "task_path": "/tmp/collections-fzc/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:26:00 -0400 (0:00:00.034) 0:00:01.170 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 1.06s /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:3 Uninstall postgresql ---------------------------------------------------- 0.03s /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Clean up ---------------------------------------------------------------- 0.02s /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:50 Run handlers ------------------------------------------------------------ 0.02s /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Generate certificate using certificate role ----------------------------- 0.02s /tmp/collections-fzc/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_custom_certificate.yml:13