roles/apache: Role to deploy Apache HTTPD
The *apache* role installs and configures the Apache HTTPD server and its *mod_ssl* module. It currently only works on Fedora/RHEL-based distributions.
This commit is contained in:
18
roles/apache/templates/httpd.logrotate.j2
Normal file
18
roles/apache/templates/httpd.logrotate.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
/var/log/httpd/*log {
|
||||
missingok
|
||||
notifempty
|
||||
rotate {{ apache_keep_num_logs }}
|
||||
maxsize {{ apache_max_log_size }}
|
||||
sharedscripts
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
delaycompress
|
||||
postrotate
|
||||
{% if ansible_distribution_major_version|int < 7 %}
|
||||
/sbin/service httpd reload > /dev/null 2>/dev/null || true
|
||||
{% else %}
|
||||
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
|
||||
{% endif %}
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user