13 lines
313 B
Text
13 lines
313 B
Text
|
{{ ansible_managed | comment }}
|
||
|
|
||
|
[Unit]
|
||
|
Description=Rotate remote logs
|
||
|
|
||
|
[Service]
|
||
|
User=root
|
||
|
Type=OneShot
|
||
|
ExecStart={{ rsyslog_collector_rotate_path }} \
|
||
|
--base-dir {{ rsyslog_collector_keep_days }} \
|
||
|
--compress-days {{ rsyslog_collector_compress_days }} \
|
||
|
--keep-days {{ rsyslog_collector_base_dir }}
|