Collections namespace collisions

16 views
Skip to first unread message

Orion Poplawski

unread,
Mar 23, 2020, 9:58:33 PM3/23/20
to Ansible Project
I just discovered that you can use:

  collections:
   - my_namespace.my_collection

in a playbook to avoid having to type the FQCN of a module.  However, how are namespace collisions handled?  It seems impractical that every collection would have unique module names.  In fact I was counting on people's use of FQCN to allow me to shorten my collections' module names.  So I ended up with a module named 'pfsensbile.core.setup' that is conflicting with the built in 'setup' module when 'collections: - pfsensible.core' is used in the play.  See https://github.com/opoplawski/ansible-pfsense/issues/44.  Is it possible to avoid this?   In some way it seems like ansible itself should always prefer its own core modules.
Reply all
Reply to author
Forward
0 new messages