ansible/ansible — pull request #1011 by dsummersl (2012-09-06 18:13:42+00:00)
Title: Cron support

I've put together a plugin with support for cron. It supports the following parameters:

- name: description of the cron job
- user: which user to install the cron jobs under.
- job: the cron job itself (ie, "0 12 * * * somjob.sh")
- state: absent|present

The library puts a comment "#Ansible: " on the line prior to the cron job which it uses to find/update/remove jobs. Perhaps thats overly complex but I figured it provides some flexibility with other jobs already setup for a user in some other way (package installs perhaps?).