Roles not found when executing include_role within a "ansible-test integration" execution

Hi there,

I tried to start a integration test for my collection with “ansible-test integration”. Within the main.yml of my tests/integration/targets/logrotate_test/tasks/ directory I use this ansible task:

- name: Prepare test
include_role:
name: “{{ item }}”
loop:
- sit_lnx_certs
- sit_lnx_repo_rhel
- sit_lnx_repo_epel

This task I have because my collection is dependend on these roles. So this roles must run before my collection does. So I tried to include them. Before running the test I installed the roles via ansible-galaxy role install. The roles are installed correctly within ~/.ansible/roles/ directory.

When I run the integration test now with
ansible-test integration --docker centos8
it tells me that the integration test can’t find my roles:

ERROR! the role ‘sit_lnx_certs’ was not found in sit_lnx.logrotate:ansible.legacy:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/roles:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/targets:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration ERROR! the role ‘sit_lnx_repo_rhel’ was not found in sit_lnx.logrotate:ansible.legacy:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/roles:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/targets:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration ERROR! the role ‘sit_lnx_repo_epel’ was not found in sit_lnx.logrotate:ansible.legacy:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/roles:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration/targets:/root/ansible_collections/sit_lnx/logrotate/tests/output/.tmp/integration/logrotate_test-hb1i7wz6-ÅÑŚÌβŁÈ/tests/integration

So I am not able to understand why and where this integration test searches for the roles. And I don’t know how I can tell ansible-test where it gets the needed roles from git. Could someone help and tell me what I am doing wrong?

I am using ansible [core 2.11.12].

Kindly Regards,
Tom