Usage of ansible collection with ansible roles

26 views
Skip to first unread message

Luca

unread,
Apr 7, 2020, 2:52:10 AM4/7/20
to Ansible Project
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

Phil Griffiths

unread,
Apr 7, 2020, 3:45:24 PM4/7/20
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages