Skip to content

A role to install and configure Cronie / Crontabs.

License

Notifications You must be signed in to change notification settings

while-true-do/ansible-role-cronie

Build Status

Ansible Role: Cronie

| A role to install and configure Cronie / Crontabs.

Motivation

Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools. This role will help with the setup and optional hardening of Cron.

Installation

Install from Ansible Galaxy

ansible-galaxy install while_true_do.cronie

Install from Github

git clone https://github.com/while-true-do/ansible-role-cronie.git while_true_do.cronie

Requirements

Used Modules:

Dependencies

None.

Role Variables

---
# defaults/main.yml for cronie
# You can set the state to ["present"|"absent"|"latest"]
wtd_cronie_state: "present"
wtd_cronie_packages: ["cronie"]

# Hardening related Variables
# All user listed in cron.allows will be allowd to use cron
# cron.denys will be ignored, if cron.allows is used
# cron.allow will always "beat" cron.deny
wtd_cronie_allows: ["root"]
# All users listed in cron.denys will be forbidden to use cron
wtd_cronie_denys: []

Example Playbook

Simple Example:

- hosts: servers 
  roles:
    - { role: while_true_do.cronie }

Testing

All tests are located in test directory.

Basic testing:

bash ./tests/test-spelling.sh
bash ./tests/test-ansible.sh

Contribute / Bugs

Thank you so much for considering to contribute. Every contribution helps us. We are really happy, when somebody is joining the hard work. Please have a look at the links first.

License

This work is licensed under a BSD License.

Author Information

Blog: blog.while-true-do.org

Mail: hello@while-true-do.org

Releases

No releases published

Packages

No packages published

Languages