Hello Team,

I have a question about how proper ansible roles and modules should work.

I'm currently working on an ansible role where it has a custom module in it 
to do some api calls. However with the way the module is set up there is 
the base module which calls some code not directly present in the module 
file. I'll have a folder structure at the bottom for clarification. The 
reason I ask is that I'm running into issues running this code in tower. As 
it works locally however fails due to ansible tower not being able to find 
the correct imports for the file. Is this just a limitation of ansible? Or 
is there something wrong with how I'm configuring the project thus leading 
it to not be able to detect the extra helper files? This is in python by 
the way to avoid confusion. I'll clarify anything unclear in the replies. 

role/
       library/
                   base_module.py
                    Python_Collections/
                                                        helper_package/
                                                                            
         helper_module.py


My import statements
base_module.py
-----------------------------
from Python_Collections import helper_package.helper_module
                    

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/bb1c57e9-c7fa-4e10-a11b-52ff48a7e7f3n%40googlegroups.com.

Reply via email to