https://github.com/telus/ansible-logrotate
rotates, compresses, and mails system logs
https://github.com/telus/ansible-logrotate
Last synced: about 1 year ago
JSON representation
rotates, compresses, and mails system logs
- Host: GitHub
- URL: https://github.com/telus/ansible-logrotate
- Owner: telus
- License: mit
- Created: 2015-05-06T23:05:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T07:06:58.000Z (almost 4 years ago)
- Last Synced: 2023-03-01T13:56:43.823Z (over 3 years ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 7
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-logrotate
logrotate - rotates, compresses, and mails system logs
[](#)
[](https://tldrlegal.com/license/mit-license)
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
------------
* None
Example Playbook
----------------
- hosts: servers
roles:
- role: telusdigital.logrotate
logrotate_name: nginx
Contributors
------------
* [Aaron Pederson](https://aaronpederson.github.io) | [e-mail](mailto:aaronpederson@gmail.com) | [Twitter](https://twitter.com/GunFuSamurai)
* [Chris Olstrom](https://colstrom.github.io/) | [e-mail](mailto:chris@olstrom.com) | [Twitter](https://twitter.com/ChrisOlstrom)
* Nikki