Add module search path with Ansible 2.x API

24 views
Skip to first unread message

Evelio VILA

unread,
Oct 31, 2016, 2:54:38 PM10/31/16
to Ansible Project
Hi list,

I have a custom python module A that imports another custom module B. In Ansible pre 2.x API I was able to do something like

 ansible.utils.plugins.action_loader.add_package(my.custom.package.B)

to add the package. What would be the best way to do that with the 2.x API.


cheers,
Evelio
Reply all
Reply to author
Forward
0 new messages