apache2.j2 614 B

123456789101112131415161718192021222324252627
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. #
  3. # {{ ansible_controlled }}
  4. #
  5. {% endif %}
  6. /var/log/apache2/*.log {
  7. daily
  8. missingok
  9. rotate 1000
  10. dateext
  11. dateyesterday
  12. compress
  13. delaycompress
  14. notifempty
  15. create 0640 www-data adm
  16. sharedscripts
  17. postrotate
  18. if /etc/init.d/apache2 status > /dev/null ; then \
  19. /etc/init.d/apache2 reload > /dev/null; \
  20. fi;
  21. endscript
  22. prerotate
  23. if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
  24. run-parts /etc/logrotate.d/httpd-prerotate; \
  25. fi; \
  26. endscript
  27. }