access local file from ansible custom module

Hi,

We are trying to deploying some custom modules which have a requirement to access some local files? Is that possible?

Thanks
Jack

If you need to use a local file from your module, you may need to create an action plugin along with your remote module. The patch “module”, for example, uses an action plugin to read the source file (when remote_src=False) and copy it to the remote system before running the patch module remotely:

Thanks you so much, we will give a try.