From 58a23dd8b5eadc13b642bcc11f7fe19917268554 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 17 Jan 2018 18:01:49 +0100 Subject: [PATCH] ansible-inventories/arocom#1590 Update logrotate to keep logs for only 7 days for GDPR compliance --- files/etc_logrotate_d_haproxy | 18 +++++++++--------- tasks/install.yml | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/files/etc_logrotate_d_haproxy b/files/etc_logrotate_d_haproxy index 6a5ca69..7cb3a7b 100644 --- a/files/etc_logrotate_d_haproxy +++ b/files/etc_logrotate_d_haproxy @@ -1,11 +1,11 @@ /var/log/haproxy { - daily - rotate 7 - delaycompress - compress - notifempty - missingok - postrotate - service haproxy restart > /dev/null - endscript + daily + rotate 7 + delaycompress + compress + notifempty + missingok + postrotate + service haproxy restart > /dev/null + endscript } diff --git a/tasks/install.yml b/tasks/install.yml index 845723f..280c1e6 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -42,6 +42,7 @@ owner='root' group='root' mode='644' + tags: 'logrotate' - name: "Install script to read socket" template: -- GitLab