# Call custom action plugin from custom action plugin?

**URL:** <https://forum.ansible.com/t/call-custom-action-plugin-from-custom-action-plugin/25592>\
**Category:** Ansible Project\
**Created:** [September 26, 2017, 12:10am UTC](https://forum.ansible.com/t/call-custom-action-plugin-from-custom-action-plugin/25592 "2017-09-26T00:10:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin\_Spicuzza](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dustin\_Spicuzza](https://forum.ansible.com/u/Dustin_Spicuzza)\
**Post date:** [September 26, 2017, 12:10am UTC](https://forum.ansible.com/t/call-custom-action-plugin-from-custom-action-plugin/25592/1 "2017-09-26T00:10:50Z")

</div>

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
