From b8a6fbc283bce1e14c1169ca8331bf48e4e6fd38 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 6 Jan 2020 08:48:42 +0100 Subject: [PATCH] copr: fe: compress rotated logs https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org/thread/YKOVBFQMUTMX2TDQ2EWTQ72CJW4H6T7P/ --- roles/copr/frontend/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index c405a80770..3039a54fff 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -45,6 +45,12 @@ - name: install httpd logrotate copy: src="httpd.logrotate" dest="/etc/logrotate.d/httpd" +- name: compress rotated logs + lineinfile: path=/etc/logrotate.d/httpd + line=' compress' + insertbefore='*delaycompress' + state=present + - name: enable and start httpd service: name=httpd state=started enabled=yes tags: