action plugin vs module

action_plugins are a special type of module, or a compliment to existing modules.

action_plugins get run on the ‘master’ instead of on the target, for modules like file/copy/template, some of the work needs to be done on the master before it executes things on the target. The action plugin executes first and can then execute (or not) the normal module.