Skip to content

colstrom/ansible-logrotate

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 22 commits behind telus:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ansible-logrotate

logrotate - rotates, compresses, and mails system logs

Platforms

Tunables

  • logrotate_name (string) - Name for logrotate script
  • logrotate_log_path (string) - Path for log to rotate
  • logrotate_create_logs_with_mode (string) - mode to create empty logfile with
  • logrotate_create_logs_with_owner (string) - owner for new logfile after rotation
  • logrotate_create_logs_with_group (string) - group for new logfile after rotation
  • logrotate_ignore_empty_logs (string) - Do not rotate logs if they are empty
  • logrotate_ignore_missing_logs (string) - Do not complain if logs are missing
  • logrotate_compression (string) - Compress logs after rotation?
  • logrotate_postpone_compression (string) - Compress logs the day after rotation?
  • logrotate_frequency (string) - How often to rotate logs?
  • logrotate_retention_limit (integer) - How many old logs to retain?
  • logrotate_notify_pidfile (string) - Pidfile of process to signal when rotation is complete
  • logrotate_notify_signal (string) - Signal to send when to process when rotation is complete
  • logrotate_prerotate_commands (list) - Commands to execute prior to rotation
  • logrotate_postrotate_commands (list) - Commands to execute after rotation

Dependencies

Example Playbook

- hosts: servers
  roles:
     - role: colstrom.logrotate
       logrotate_name: nginx

License

MIT

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published