Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Daniel Berteaud 516d4ee6be Update to 2020-12-08 13:00 3 years ago
..
defaults Update to 2020-12-08 13:00 3 years ago
meta Update to 2020-05-18 19:00 4 years ago
tasks Update to 2020-05-18 19:00 4 years ago
README.md Update to 2020-05-18 19:00 4 years ago

README.md

timers

This roles manage systemd timers, to execute commands at regular interval. Just define the timers you want at the host, or group level, like :

system_timers:
  - id: db-janitor     # Just an identifier for the task
    calendar: '*:0/30' # See man systemd.timer for examples
    max_duration: 1h   # Max duration of the task. Will be terminated if it takes longer
    command: |
      #!/bin/bash
      psql -U postgres -d reports -w << _EOF
        delete from audit where time < now()-'7 day'::interval;
      _EOF
  - id: logrotate
    calendar: daily
    command: logrotate -f /etc/logrotate.d/myservice.conf

Look at the defaults/main.yml file for more info