Commit Graph

24 Commits (8cab5937c3d1b7520e35e94f8f441e33e6f59ba4)

Author SHA1 Message Date
Markus Amalthea Magnuson a44e322db4 Use correct parameter name in error message.
The parameter is called `cron_file` but the error message uses `file` which is confusing.
11 years ago
James Cammarata d8bb116c1a Merge branch 'devel' of https://github.com/tgolly/ansible into tgolly-devel 11 years ago
Adam Chainz 3497582581 Fix grammar and value errors in cron documentation 11 years ago
James Tanner 899ba4c9bb Fixes syntax error in cron module caused by #6870 11 years ago
MorrisA 4dc46e9061 Modified Cron to add AIX Crontab support, changed according to suggestions
from mpdehaan and redone entirely.
11 years ago
Michael DeHaan 621fcbb9de Name is not required, update docs. 11 years ago
Joshua Lund 79c245f31f Update cron module documentation. The 'name' parameter is required. 11 years ago
Tim G dbf412b77c Bugfix, fix crontab commands on HP-UX 11 years ago
Michael DeHaan 4e8b97ddeb More shell updates 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
nextus 17cbbcdd30 Don't allow cron module to delete cron_file without name parameter assignment 11 years ago
nextus a43aaaecd0 Fix: absent state removing whole cron.d file instead of specific job 11 years ago
jctanner ec55268738 Merge pull request #4304 from ferringb/fixes/cron-permissions
Enforce umask for cron module, so cron_file generated files are 0644.
11 years ago
Jim Richardson bbfe11fc1e return True/False from remove_job_file()
revised fix for https://github.com/ansible/ansible/issues/4795
11 years ago
Jim Richardson bcc08564e7 fix for https://github.com/ansible/ansible/issues/4795
Incorrect changed result in cron module.
Report changed=False if no cron is removed:wq
11 years ago
Michael Scherer 9e7b02aaee make cron module work on solaris
Cron on solaris do not take the same
set of option than vixie cron on linux, and
among the biggest difference, root cannot set
the crontab of a user directly from a file. Thus the
use of su to run the crontab command. Fix issue #4648
11 years ago
Michael Scherer 506ce6a809 remove unused function 11 years ago
Brian Harring f88fed2060 Enforce umask for cron module, so cron_file generated files are 0644.
Certain cron implementations get cranky if files in cron.* are group
writable.
11 years ago
James Cammarata ceddc37f07 Fix for the cron module on FreeBSD
Apparently crontab on freebsd does not like the file path coming before
the "-u username" portion of the command to install the crontab
11 years ago
Michael DeHaan 8cc13590b4 Make exceptions handling python 2.4 compatible. 11 years ago
Michael DeHaan 1acd9b6325 Update CHANGELOG 11 years ago
Patrick Callahan 8f14ffe56b Bug fixes and enhancements.
Bugs:
(1) no longer allow empty jobs
(2) strip the header added by crontab package used in openSuSE and SuSE
(3) try not to leak temp files when things go wrong
(4) issue returning job names under certain conditions

Enhancements:
(1) Allow all special times not just reboot.
(2) Fail earlier by performing more input validation
(3) Add feature to allow removing cron file under /etc/cron.d

ToDo:
(1) Validate times (minute, hour, ...)
(2) Strip white space from fields such as name and job such that name=foo equals name=' foo'.
(3) More testing
12 years ago
Jan-Piet Mens 5c69918d53 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago