copr: install our lograte for httpd
with rotate 5 otherwise old logs get deleted
This commit is contained in:
parent
f8060b5a90
commit
4b4fed942c
2 changed files with 15 additions and 0 deletions
12
roles/copr/frontend/files/httpd.logrotate
Normal file
12
roles/copr/frontend/files/httpd.logrotate
Normal 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
|
||||
}
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue