mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
26 lines
708 B
Django/Jinja
26 lines
708 B
Django/Jinja
/var/log/rsyslog/*.log {
|
|
{{ rhel9cis_rsyslog_logrotate_rotated_when }}
|
|
rotate {{ rhel9cis_rsyslog_logrotate_rotatation_keep }}
|
|
{% if rhel9cis_rsyslog_logrotate_compress %}
|
|
compress
|
|
{% else %}
|
|
nocompress
|
|
{% endif %}
|
|
{% if rhel9cis_rsyslog_logrotate_missingok %}
|
|
missingok
|
|
{% else %}
|
|
nomissingok
|
|
{% endif %}
|
|
{% if rhel9cis_rsyslog_logrotate_notifempty %}
|
|
notifempty
|
|
{% else %}
|
|
ifempty
|
|
{% endif %}
|
|
{% if rhel9cis_rsyslog_logrotate_create %}
|
|
create{% if rhel9cis_rsyslog_logrotate_create_opts is defined %} {{ rhel9cis_rsyslog_logrotate_create_opts }}{% endif %}
|
|
{% endif %}
|
|
|
|
postrotate
|
|
/usr/bin/systemctl reload rsyslog.service >/dev/null || true
|
|
endscript
|
|
}
|