Skip to content

lunics/ansible_role_cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role: CRON

Install and deploy cron jobs and cron vars.

A copy of robertdebock/ansible-role-cron.

Only tested on Archlinux.

Usage

Override defaults

cron_jobs: []
  - name:   job title     # required, description of the job
    job:    ls -l         # required, command ran
    day:    1-15          # for the first part of the month
    hour:   23            # in the 23rd hour
    minute: "*/10"        # every 10 minutes
    user:   root          # optional, default = root; job for a specific user
cron_vars: []
  - name:   PATH
    value:  /usr/bin:/bin:/usr/local/bin
    user:   root

TODO

  • replace tasks/config.yml lineinfile by templates
  • replace cron.packages by cron_packages
  • implement task/cron_jobs.yml:templatecron_files

About

Install and deploy cron jobs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published