using a custom ansible module from a python package

9 views
Skip to first unread message

Joseph Lorenzini

unread,
Apr 23, 2017, 8:12:28 PM4/23/17
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages