- Use next lines for configuration in
all.yml
or override instaging.yml
/production.yml
# Job files location
parse_job_dir: "./cloud/jobs"
# Log files location
logger_log_jobs_dir: "{{ logger_log_dir }}/jobs"
# Cron jobs
cron_jobs:
- { name: "some script 1",
minute: "*/1",
hour: "*",
day: "*",
weekday: "*",
month: "*",
job: "test1.js" }
- { name: "some script 2",
minute: "3",
hour: "*/2",
day: "5,12,24",
weekday: "*",
month: "*",
job: "test2.js" }
ansible-playbook -i inventories/staging cron.yml
crontab -u parse -l
tail -f /var/log/docker/jobs/<jobFileName>