On Mon, Mar 7, 2022 at 11:25 AM Till Maas <till@redhat.com> wrote:
Hi,

Am Mo., 7. März 2022 um 19:14 Uhr schrieb Richard Megginson <rmeggins@redhat.com>:
Some roles now have dependencies on collections, since with ansible-core some of the plugins are now external to ansible and only available via collections.


The Ansible team regards this as a "not my problem" issue.

I was thinking of adding a non-standard file like `meta/collection-requirements.yml` to the roles that need it - at least we could document that users will have to first do
ansible-galaxy role install linux-system-roles.storage
then use
ansible-galaxy collection install -r /path/to/roles/linux-system-roles.storage/meta/collection-requirements.yml

Any ideas?

if a user can install a collection it seems best to me if they also installed the system roles collection instead of the system roles role. Would this allow it to depend on the other collection?

Yes.  It is not a problem for collections to depend on other collections.  It is only a problem if a role wants to depend on a collection.

There are apparently a lot of users who still like to use roles, for various reasons.  So I would like to be able to support such users.
 

Cheers
Till
 

--
Till Maas
He/His/Him
Associate Manager, Software Engineering
NetworkManager, Nmstate, Ansible RHEL Networking System Role

Red Hat GmbH, https://de.redhat.com/, Registered seat: Grasbrunn, 
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill