Common functions for modules

Greetings all.

Is it possible to import a shared module in to a role module?

Something like:

roles/
myRole1/
library/
myFunc1.py ← import myCommon

myRole2/
library/
myFunc2.py ← import myCommon

some_dir/
myCommon.py

Where myCommon.py contain functions that can be used for all roles. E.g. update_something_common().

Thanks.
/Anders

no, currently this does not exist, the libraries a module uses should
be installed in the system.

ansible uses a non standard import to share code between modules, that
shared code lives in module_utils/