Files
configpolicy/roles/apache/templates/httpd.logrotate.j2
Dustin C. Hatch f89b279d3a roles/apache: Role to deploy Apache HTTPD
The *apache* role installs and configures the Apache HTTPD server and
its *mod_ssl* module. It currently only works on Fedora/RHEL-based
distributions.
2018-04-14 15:21:15 -05:00

19 lines
473 B
Django/Jinja

/var/log/httpd/*log {
missingok
notifempty
rotate {{ apache_keep_num_logs }}
maxsize {{ apache_max_log_size }}
sharedscripts
compress
compresscmd /usr/bin/xz
compressext .xz
delaycompress
postrotate
{% if ansible_distribution_major_version|int < 7 %}
/sbin/service httpd reload > /dev/null 2>/dev/null || true
{% else %}
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
{% endif %}
endscript
}