Git Product home page Git Product logo

ansible-role-cron's Introduction

Ansible Role - Cron

A Cron role to add cron jobs on elao symfony standard vagrant box

Requirements

This role only run on elao symfony standard vagrant box. See https://vagrantcloud.com/elao/symfony-standard-debian

Role Handlers

cron restart

Role Variables

Variable Required Default Choices Comments
name yes Description of crontab entry. Must be unique.
job * The command to execute. Required if state=present
state no present present,absent Whether to ensure the job is present or absent.
day no * Day of the month the job should run (1-31, *, */2, etc)
hour no * Hour when the job should run (0-23, *, */2, etc)
minute no * Minute when the job should run (0-59, *, */2, etc)
month no * Month of the year the job should run (1-12, *, */2, etc)
weekday no * Day of the week that the job should run (0-6 for Sunday-Saturday, *, etc)
# Ensure a job that runs at 2 and 5 exists.
# Creates an entry like "0 5,2 * * ls -alh > /dev/null"
elao_cron: name="check dirs" minute="0" hour="5,2" job="ls -alh > /dev/null"

# Ensure an old job is no longer present. Removes any job that is prefixed
# by "#Ansible: an old job" from the crontab
elao_cron: name="an old job" state=absent

Example Playbook

  • hosts: servers roles:
  • { role: elao.cron }

License

MIT

Author Information

http://www.elao.com/

ansible-role-cron's People

Contributors

nervo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.