diff --git a/roles/copr/frontend-cloud/tasks/main.yml b/roles/copr/frontend-cloud/tasks/main.yml index 584ea99524..a4cd4163ec 100644 --- a/roles/copr/frontend-cloud/tasks/main.yml +++ b/roles/copr/frontend-cloud/tasks/main.yml @@ -163,6 +163,12 @@ - name: install custom systemd service files copy: src=systemd dest=/etc +- name: compress rotated httpd logs + lineinfile: path=/etc/logrotate.d/httpd + line=' compress' + insertbefore='*delaycompress' + state=present + - name: start logrotate service service: name=logrotate.timer state=started enabled=yes diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 3039a54fff..c405a80770 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -45,12 +45,6 @@ - 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: