apache: logrotate replacement is more subtle/precise

It replaces only the proper directive and not every occurence of the 
word.
This commit is contained in:
Jérémy Lecour 2018-08-23 13:02:25 +02:00 committed by Jérémy Lecour
parent d09fd169b3
commit bb956fb5e7
2 changed files with 3 additions and 2 deletions

View file

@ -44,6 +44,7 @@ The **patch** part changes incrementally at each release.
* kvm-host: install kvm-tools package instead of copying add-vm.sh * kvm-host: install kvm-tools package instead of copying add-vm.sh
### Fixed ### Fixed
* apache: logrotate replacement is more subtle/precise. It replaces only the proper directive and not every occurence of the word.
* bind: chroot-bind.sh must not be executed in check mode * bind: chroot-bind.sh must not be executed in check mode
* evoacme: fix module detection in apache config * evoacme: fix module detection in apache config
* fail2ban: fix fail2ban_ignore_ips definition * fail2ban: fix fail2ban_ignore_ips definition

View file

@ -174,8 +174,8 @@
- name: "logrotate: keep 52 files" - name: "logrotate: keep 52 files"
replace: replace:
dest: /etc/logrotate.d/apache2 dest: /etc/logrotate.d/apache2
regexp: "rotate .+" regexp: '^(\s+rotate) \d+$'
replace: "rotate 52" replace: '\1 52'
tags: tags:
- apache - apache