Import github.com/arillso/ansible.logrotate

at version 1.5.2 (commit 038649f
This commit is contained in:
Serge van Ginderachter 2020-09-09 16:17:43 +02:00
parent 008fdbaa1f
commit b0e5245e4e
No known key found for this signature in database
GPG key ID: 3148E9B9232D65E5
9 changed files with 248 additions and 0 deletions

49
defaults/main.yml Normal file
View file

@ -0,0 +1,49 @@
---
# List of global options. If this is empty the default options of the
# distribution are used.
logrotate_options: []
# Path to the include files
logrotate_include_dir: /etc/logrotate.d
# package name to install logrotate.
logrotate_package: logrotate
# Enable hourly rotation with cron.
logrotate_use_hourly_rotation: false
# logroate for wtmp
logrotate_wtmp:
logs:
- /var/log/wtmp
options:
- missingok
- monthly
- create 0664 root utmp
- rotate 1
# logroate for btmp
logrotate_btmp:
logs:
- /var/log/btmp
options:
- missingok
- monthly
- create 0660 root utmp
- rotate 1
# More log files can be added that will log rotate.
# An example of multiple log rotate applications with available settings:
# logrotate_applications:
# - name: name-your-log-rotate-application
# definitions:
# - logs:
# - /var/log/apt/term.log
# - /var/log/apt/history.log
# options:
# - rotate 12
# - monthly
# - missingok
# - notifempty
# - compress
logrotate_applications: []