copr: install our lograte for httpd

with rotate 5
otherwise old logs get deleted
This commit is contained in:
Miroslav Suchý 2019-04-05 10:08:06 +02:00
parent f8060b5a90
commit 4b4fed942c
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# managed by Ansible
/var/log/httpd/*log {
missingok
rotate 5
notifempty
sharedscripts
delaycompress
postrotate
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
endscript
}

View file

@ -42,6 +42,9 @@
- copr
- selinux
- name: install httpd logrotate
copy: src="httpd.logrotate" dest="/etc/logrotate.d/httpd"
- name: enable and start httpd
service: name=httpd state=started enabled=yes
tags: