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: