From aa1ab75edd69e9a0a29b98eb3a6279a659835d8a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 26 Dec 2020 11:33:09 -0600 Subject: [PATCH] roles/apache: logrotate: Compress logs immediately To conserve space on the log volume of web servers, "old" log files are now compressed immediately, as opposed to waiting until the next rotation. --- roles/apache/templates/httpd.logrotate.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/apache/templates/httpd.logrotate.j2 b/roles/apache/templates/httpd.logrotate.j2 index 7ebf993..c61d9af 100644 --- a/roles/apache/templates/httpd.logrotate.j2 +++ b/roles/apache/templates/httpd.logrotate.j2 @@ -7,7 +7,6 @@ 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