Call custom action plugin from custom action plugin?

19 views
Skip to first unread message

Dustin Spicuzza

unread,
Sep 25, 2017, 8:10:50 PM9/25/17
to Ansible Project
I have two action modules (found via setting the environment variable ANSIBLE_ACTION_PLUGINS to the directory they live in). a.py wants to use the functionality exposed by b.py to do a thing -- both execute on the master and use ActionBase to do various remote operations. Is there a defined way to do this? I suppose I could import one from the other, but that doesn't seem right, and then I would have to initialize the other plugin manually (since both plugins use method/etc in ActionBase).

I use _execute_module to do various operations already, but it doesn't work for this -- it appears that _execute_module only works for modules that execute remotely?

Thanks!

Dustin
Reply all
Reply to author
Forward
0 new messages