Make days retained configurable

This commit is contained in:
Jason Rothstein 2020-03-28 16:34:52 -05:00
parent 47ad64d5e1
commit 579032189f
8 changed files with 11 additions and 8 deletions

View File

@ -11,7 +11,9 @@ Any pre-requisites that may not be covered by Ansible itself or the role should
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
| variable | default | purpose |
| - | - | - |
| log_retention_days | 90 | Number of days to retain logs on the system |
Dependencies
------------

View File

@ -1,2 +1,3 @@
---
# defaults file for ensure_log_rotation
# defaults file for ensure_log_rotation
log_retention_days: '90'

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create

View File

@ -3,7 +3,7 @@
daily
# keep 4 weeks worth of backlogs
rotate 90
rotate {{ log_retention_days }}
# create new (empty) log files after rotating old ones
create