Ansible custom module and custom Python library

Hello,

As part of the deployment of an application specific to the business of my company, I developed an Ansible module in Python and I also developed a Python library for reuse and factorization the code. A bootable playbook installs the Python library on the managed hosts, and then the module that I developed in Python loads this library.

My question: is this way of organizing my developments in conformity with the philosophy of Ansible, especially on the fact that the modules are supposed to be standalone?

Do you think that can be a problem later on?

Thanks for your feedback,

Julien.

Current development (future 2.3) add a 'user defined module_utils'
feature that will allow you to ship the library with the module in the
same way Ansible's module_util currently works.