dwcramer.logrotate
ansible-logrotate
logrotate - rotates, compresses, and mails system logs
Forked form telusdigital because we need to depend on released versions of roles.
Tunables
logrotate_name(string) - Name for logrotate scriptlogrotate_log_path(string) - Path for log to rotatelogrotate_create_logs_with_mode(string) - mode to create empty logfile withlogrotate_create_logs_with_owner(string) - owner for new logfile after rotationlogrotate_create_logs_with_group(string) - group for new logfile after rotationlogrotate_ignore_empty_logs(string) - Do not rotate logs if they are emptylogrotate_ignore_missing_logs(string) - Do not complain if logs are missinglogrotate_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 completelogrotate_notify_signal(string) - Signal to send when to process when rotation is completelogrotate_prerotate_commands(list) - Commands to execute prior to rotationlogrotate_postrotate_commands(list) - Commands to execute after rotation
Dependencies
Example Playbook
- hosts: servers
roles:
- role: telusdigital.logrotate
logrotate_name: nginx
License
Contributors
Install
ansible-galaxy install dwcramer.logrotateLicense
mit
Downloads
10k
Owner
