forked from evolix/ansible-roles
apache: customize logrotate (52 weeks)
This commit is contained in:
parent
15ebb84bb6
commit
5c5361dbb5
|
@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
* apache: customize logrotate (52 weeks)
|
||||||
* evolinux: groups for SSH configuration are used with Debian 10 and later
|
* evolinux: groups for SSH configuration are used with Debian 10 and later
|
||||||
* evolinux-base: fail2ban is not enabled by default
|
* evolinux-base: fail2ban is not enabled by default
|
||||||
* evolinux-users: refactoring of the SSH configuration
|
* evolinux-users: refactoring of the SSH configuration
|
||||||
|
|
|
@ -163,6 +163,22 @@
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
|
- name: "logrotate: rotate weekly"
|
||||||
|
replace:
|
||||||
|
dest: /etc/logrotate.d/apache2
|
||||||
|
regexp: "(daily|weekly|monthly)"
|
||||||
|
replace: "weekly"
|
||||||
|
tags:
|
||||||
|
- apache
|
||||||
|
|
||||||
|
- name: "logrotate: keep 52 files"
|
||||||
|
replace:
|
||||||
|
dest: /etc/logrotate.d/apache2
|
||||||
|
regexp: "rotate .+"
|
||||||
|
replace: "rotate 52"
|
||||||
|
tags:
|
||||||
|
- apache
|
||||||
|
|
||||||
- include: log2mail.yml
|
- include: log2mail.yml
|
||||||
when: apache_log2mail_include
|
when: apache_log2mail_include
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue