From 7ff9b3990affce612f50e06676776fa3c66aeced Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 2 Dec 2014 14:38:32 -0800 Subject: [PATCH] Update cron example for setting to run twice a day Fixes #415 --- lib/ansible/modules/system/cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index d14f36253c0..c0a39b61c61 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -123,8 +123,8 @@ updates: [ 'Mike Grozak', 'Patrick Callahan' ] EXAMPLES = ''' # Ensure a job that runs at 2 and 5 exists. -# Creates an entry like "* 5,2 * * ls -alh > /dev/null" -- cron: name="check dirs" hour="5,2" job="ls -alh > /dev/null" +# Creates an entry like "0 5,2 * * ls -alh > /dev/null" +- cron: name="check dirs" minute="0" hour="5,2" job="ls -alh > /dev/null" # Ensure an old job is no longer present. Removes any job that is prefixed # by "#Ansible: an old job" from the crontab