##### SUMMARY
Happened here: https://github.com/ansible-collections/community.general/pull/341

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
ansible-test

##### ANSIBLE VERSION
```paste below
devel
```

version='2.12', collection_name='ansible.builtin'
        )
    if module._diff:
        diff = dict()
        diff['before'] = crontab.n_existing
        if crontab.cron_file:
            diff['before_header'] = crontab.cron_file
        else:
            if crontab.user:
                diff['before_header'] = 'crontab for user "%s"' % crontab.user
            else:
                diff['before_header'] = 'crontab'
    
    if env and not name:
        module.fail_json(msg="You must specify 'name' while working with environment variables (env=yes)")
    if (special_time or reboot) and \
       (True in [(x != '*') for x in [minute, hour, day, month, weekday]]):
        module.fail_json(msg="You must specify time and date fields or special time.")
    
    if (special_time or reboot) and platform.system() == 'SunOS':
        module.fail_json(msg="Solaris does not support special_time=... or @reboot")
    if cron_file and do_install:
        if not user:
            module.fail_json(msg="To use cron_file=... parameter you must specify user=... as well")
    if job is None and do_install:
        module.fail_json(msg="You must specify 'job' to install a new cron job or variable")
    if (insertafter or insertbefore) and not env and do_install:
        module.fail_json(msg="Insertafter and insertbefore parameters are valid only with env=yes")
    if reboot:
        special_time = "reboot"