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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.