forked from evolix/ansible-roles
haproxy: rotate logs with date extension and immediate compression
This commit is contained in:
parent
977c28c720
commit
9bdd5ad9e7
|
@ -35,6 +35,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* haproxy: chroot and socket path are configurable
|
* haproxy: chroot and socket path are configurable
|
||||||
* haproxy: adapt backports installed package list to distibution
|
* haproxy: adapt backports installed package list to distibution
|
||||||
* haproxy: split stats variables
|
* haproxy: split stats variables
|
||||||
|
* haproxy: rotate logs with date extension and immediate compression
|
||||||
* nginx: read server-status values before changing the config
|
* nginx: read server-status values before changing the config
|
||||||
* redis: create sudoers file if missing
|
* redis: create sudoers file if missing
|
||||||
* redis: new syntax for match filter
|
* redis: new syntax for match filter
|
||||||
|
|
|
@ -101,4 +101,24 @@
|
||||||
- haproxy
|
- haproxy
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: Rotate logs with dateext
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/logrotate.d/haproxy
|
||||||
|
line: ' dateext'
|
||||||
|
regexp: '^\s*#*\s*(no)?dateext'
|
||||||
|
insertbefore: '}'
|
||||||
|
tags:
|
||||||
|
- haproxy
|
||||||
|
- config
|
||||||
|
|
||||||
|
- name: Rotate logs with nodelaycompress
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/logrotate.d/haproxy
|
||||||
|
line: ' nodelaycompress'
|
||||||
|
regexp: '^\s*#*\s*(no)?delaycompress'
|
||||||
|
insertbefore: '}'
|
||||||
|
tags:
|
||||||
|
- haproxy
|
||||||
|
- config
|
||||||
|
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
|
|
Loading…
Reference in a new issue