# Reusing custom action plugin across multiple custom modules

**URL:** <https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466>\
**Category:** Ansible Project\
**Created:** [January 12, 2018, 2:49am UTC](https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466 "2018-01-12T02:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pathangi\_Janardhanan](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@Pathangi\_Janardhanan](https://forum.ansible.com/u/Pathangi_Janardhanan)\
**Post date:** [January 12, 2018, 2:49am UTC](https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466/1 "2018-01-12T02:49:23Z")

</div>

Hi,

I have to write a few modules but all of them need some common local host work to be done, which I do in the action plugin. The problem is I am putting one action plugin for each module (since the action plugin has to be the same name as the module), even though all the action plugins do exactly the same.

Is there any way I can write a single action module, that can be used by all my custom modules?

Thanks  
Jana

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [February 9, 2018, 6:08am UTC](https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466/2 "2018-02-09T06:08:57Z")

</div>

use symlink from single 'action module' to the other names.
