# Module development

**URL:** <https://forum.ansible.com/t/module-development/13284>\
**Category:** Ansible Project\
**Created:** [August 12, 2013, 4:33pm UTC](https://forum.ansible.com/t/module-development/13284 "2013-08-12T16:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanchan404](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@ryanchan404](https://forum.ansible.com/u/ryanchan404)\
**Post date:** [August 12, 2013, 4:33pm UTC](https://forum.ansible.com/t/module-development/13284/1 "2013-08-12T16:33:43Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 12, 2013, 9:07pm UTC](https://forum.ansible.com/t/module-development/13284/2 "2013-08-12T21:07:57Z")

</div>

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
