https://github.com/cycloidio/ansible-cron
Configure crontab and setup crons
https://github.com/cycloidio/ansible-cron
Last synced: 9 months ago
JSON representation
Configure crontab and setup crons
- Host: GitHub
- URL: https://github.com/cycloidio/ansible-cron
- Owner: cycloidio
- Archived: true
- Created: 2016-10-31T17:14:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T13:45:19.000Z (over 9 years ago)
- Last Synced: 2025-09-20T07:52:40.299Z (9 months ago)
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cron
=========
Configure crontab and setup crons on hosts.
Generaly Dev and Preprod plateform are stopped the night and weekend. By default daily, weekly and monthly are run during the night. Because dev and preprod are stopped, Daily cron are never run. Cron module allow us to override the schedule and run cron during the day.
Role Variables
--------------
* crons: Used to define crons.
* crontab_time: Used to override the crontab run time.
Example Playbook
----------------
```bash
- hosts: servers
vars:
crontab_time:
hourly: "17 * * * *"
daily: "25 6 * * *"
weekly: "47 6 * * 7"
monthly: "52 6 1 * *"
crons:
- name: first cron to add
job: "/my/first/cron/command"
minute: "30"
hour: "*"
day: "*"
month: "*"
weekday: "*"
user: foo
state: present
roles:
- {role: cycloid.cron, tags: cron}
```