apache2.j2 624 B

1234567891011121314151617181920212223242526
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. /var/log/apache2/*.log {
  6. daily
  7. missingok
  8. rotate 1000
  9. dateext
  10. dateyesterday
  11. compress
  12. delaycompress
  13. notifempty
  14. create 0640 www-data adm
  15. sharedscripts
  16. postrotate
  17. if /etc/init.d/apache2 status > /dev/null ; then \
  18. /etc/init.d/apache2 reload > /dev/null; \
  19. fi;
  20. endscript
  21. prerotate
  22. if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
  23. run-parts /etc/logrotate.d/httpd-prerotate; \
  24. fi; \
  25. endscript
  26. }