Reusing custom action plugin across multiple custom modules

5 views
Skip to first unread message

Pathangi Janardhanan

unread,
Jan 11, 2018, 9:49:23 PM1/11/18
to Ansible Project
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

Brian Coca

unread,
Feb 9, 2018, 1:09:13 AM2/9/18
to Ansible Project
use symlink from single 'action module' to the other names.



--
----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages