Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for raw cron schedules #57332

Open
wants to merge 3 commits into
base: devel
from

Conversation

Projects
None yet
3 participants
@evilhamsterman
Copy link

commented Jun 4, 2019

SUMMARY

This adds support for using raw cron schedules such as 0 23 * * * rather than specifying the minutes, hours, etc. individually. Some people are used to doing cron lines and similar to how the file module lets people use octal or symbolic mode.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cron

ADDITIONAL INFORMATION

Example of equivalent cron jobs with old and new format

- name: Creates and entry with minute and hour settings
    become: yes
    cron:
      name: "a cron job"
      minute: "30"
      hour: "20"
      job: "/bin/tar cf backup.tar /backup"

  - name: Creates and entry with a raw cron schedule string
    become: yes
    cron:
      name: "a raw cron job"
      schedule: "30 20 * * *"
      job: "/bin/tar cf backup.tar /backup"

This is a bump of my previous Pull Request #54263

evilhamsterman added some commits Mar 22, 2019

@ansibot

This comment has been minimized.

@resmo

This comment has been minimized.

Copy link
Member

commented Jun 4, 2019

shipit

@ansibot ansibot removed the needs_triage label Jun 4, 2019

@ansibot ansibot added the stale_ci label Jun 12, 2019

@resmo resmo self-requested a review Jun 14, 2019

@resmo

resmo approved these changes Jun 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.