From f7707ea1375d28b1086e91e8cc26edbcc9eb8d02 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 19 Apr 2015 12:39:36 -0400 Subject: [PATCH] Name is a required parameter, fix https://github.com/ansible/ansible/issues/10335 --- lib/ansible/modules/system/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index c0a39b61c6..f91587caf6 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -139,7 +139,7 @@ EXAMPLES = ''' cron_file=ansible_yum-autoupdate # Removes a cron file from under /etc/cron.d -- cron: cron_file=ansible_yum-autoupdate state=absent +- cron: name="yum autoupdate" cron_file=ansible_yum-autoupdate state=absent ''' import os