Hello all,

Is there a way to import a custom python library from an ansible custom 
module?

I am trying to create a custom module and need a specific python library. I 
have put my inifile.py file in the library folder of my playbook. My 
ansible custom module is in the same folder. However, when using the import 
command (from inifile import IniFile) in the custom module, it cannot find 
the pyhton library:

invalid output was: Traceback (most recent call last):
  File 
"/home/olivier/.ansible/tmp/ansible-tmp-1437029018.2-53200658786921/file_ini_correct_options",
 
line 92, in <module>
    from inifile import IniFile
ImportError: No module named inifile

Any way to do that?

Regards,
Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f62e78a7-97e4-40df-94b6-87accc4014be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to