using a custom ansible module from a python package

Hi all,

Let’s say I create a python package (may have one or more subdirectories with the appropriate init.py file). Can I have ansible module in this package and have ansible copy over the entire package and run it? When I try anything like that by putting the package in the library path, I get a module not found. If i put everything in a single file, then it works as expected. I am guessing I’d just have to manually install the python package on the remote server and then run the ansible module from there.

Joe