Using submodules for Plugins

Hello every body !

I have opened an issue / featrure request on Ansible Github about the “plugins” usage and distribution : https://github.com/ansible/ansible/issues/10657
It may be interesting to have a discussion here about it.

So the main points of the PR are :

  • In source repository, there is a “plugins” directory that is not shipped in the PIP package (I did not checked in the OS distro packages)
  • There is documentation on docs.ansible.com about
    Lookup_plugins, callback_plugins ...

but not about the “Inventory” which are presents into the “plugins” dir of https://github.com/ansible/ansible/

So, maybe it could be interesting to extract this directory to its own repo “ansible-plugins” and refer it via submodules like for the “ansible-modules-core” and “ansible-module-extra”.

What do you think ?

I would make the modules-core/extras the repositories of all plugins,
not just task plugins.