Update cron example for setting to run twice a day

Fixes #415
pull/18777/head
Toshio Kuratomi 10 years ago committed by Matt Clay
parent 103b5954c7
commit 7ff9b3990a

@ -123,8 +123,8 @@ updates: [ 'Mike Grozak', 'Patrick Callahan' ]
EXAMPLES = ''' EXAMPLES = '''
# Ensure a job that runs at 2 and 5 exists. # Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "* 5,2 * * ls -alh > /dev/null" # Creates an entry like "0 5,2 * * ls -alh > /dev/null"
- cron: name="check dirs" hour="5,2" job="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 # Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab # by "#Ansible: an old job" from the crontab

Loading…
Cancel
Save