From 53e9caa1d0656dae117b9d8eb0ebd731dbda13c6 Mon Sep 17 00:00:00 2001 From: Alexis Seigneurin Date: Mon, 2 Feb 2015 14:51:04 +0100 Subject: [PATCH] - 'name' should not be required so as to allow uninstalling a cron_file --- 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 b694bab8f20..88985e23071 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -46,7 +46,7 @@ options: description: - Description of a crontab entry. default: null - required: true + required: false user: description: - The specific user whose crontab should be modified. @@ -398,7 +398,7 @@ def main(): module = AnsibleModule( argument_spec = dict( - name=dict(required=True), + name=dict(required=False), user=dict(required=False), job=dict(required=False), cron_file=dict(required=False),