Module development

Hi,

I am in the process of creating my own module, I have two questions

  1. How to add a cron like this module: http://www.ansibleworks.com/docs/modules.html#cron, but in my own module?
  2. How to copy a file but passing thru the template engine by replacing the vars?

Thanks.

  1. I don’t understand question1, can you elaborate?

  2. Use the template module, or base an action plugin on the template module. See template.py