Import github.com/arillso/ansible.logrotate
at version 1.5.2 (commit 038649f
This commit is contained in:
parent
008fdbaa1f
commit
b0e5245e4e
9 changed files with 248 additions and 0 deletions
49
defaults/main.yml
Normal file
49
defaults/main.yml
Normal 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: []
|
Loading…
Add table
Add a link
Reference in a new issue