diff --git a/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml b/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml new file mode 100644 index 00000000000..a8a52f6a801 --- /dev/null +++ b/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml @@ -0,0 +1,2 @@ +minor_changes: +- "Added missing deprecation warning for param 'reboot' and use without param 'name' to the cron module." diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index cabccc94a63..7a31648d158 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -613,12 +613,12 @@ def main(): if not name: module.deprecate( msg="The 'name' parameter will be required in future releases.", - version='2.10' + version='2.12' ) if reboot: module.deprecate( msg="The 'reboot' parameter will be removed in future releases. Use 'special_time' option instead.", - version='2.10' + version='2.12' ) if module._diff: