ansible/ansible — pull request #1077 by dsummersl (2012-09-23 17:51:18+00:00)
Title: Cron

I've updated the plugin I put together for cron. It supports the following parameters:

* name: description of the cron job
* user: which user to install the cron jobs under.
* minute, hour, day, month, weekday: cron time parameters.
* job: the cron job itself (ie, "somjob.sh")
* state: absent|present
* backup: if true, create a backup (and return its location) prior to modifying the crontab.

The library puts a comment "#Ansible: " on the line prior to the cron job which it uses to find/update/remove jobs.

I'm not sure how I got my dev branch to include some superfluous commit messages referencing 'vagrant' from another branch I made...rest assured there are no vagrant changes in here. There are only two file changes for tests and the library...let me know if the commits are a problem and I'll try to figure out how to remove them.

Also I'd be happy to update the site docs if this gets merged in...

Thanks,

Dane