Usage of ansible collection with ansible roles

Hello everybody,

How I can use an ansible collection inside an ansible role (that I cannot modify)?

I need to use the ansible collection ovirt.ovirt_collection (new features in the modules that are not in ansible 2.9.6) with ansible roles to manage an oVirt cluster but the roles use the default modules.
Do you know how to force the use of the modules inside the collection?

Regards,
Luca

Hi Luca

It’s still early days for collections, so some things need ironing out, like https://github.com/ansible/ansible/issues/68198 [we’ll have to see what happens here]

You either need to use FQCNs (Fully Qualified Collection Names) or better still metadata - see https://docs.ansible.com/ansible/devel/user_guide/collections_using.html#using-collections-in-roles
(this appears to be only in the devel docs branch for now)

Regards
Phil.