From ec49e3587f01c7e3e5721672d82b7267f70de6c5 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Sat, 4 Mar 2023 01:45:55 +0100 Subject: [PATCH] Log rotation for DDoS log files Refs #70 Refs #73 --- requirements.yml | 1 + roles/install/tasks/firewalld.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/requirements.yml b/requirements.yml index 896878a..507622a 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,6 +1,7 @@ --- - src: bviktor.firewalld - src: bviktor.github_release +- src: bviktor.logrotate - src: bviktor.selinux_cil - src: bviktor.servicecheck - src: bviktor.thirdparty diff --git a/roles/install/tasks/firewalld.yml b/roles/install/tasks/firewalld.yml index 2789ff3..3b400a9 100644 --- a/roles/install/tasks/firewalld.yml +++ b/roles/install/tasks/firewalld.yml @@ -37,3 +37,10 @@ - '20560/udp' - '27015/udp' - '8080/tcp' + +- include_role: + name: bviktor.logrotate + vars: + name: kf2-ddos + pattern: /var/log/kf2-ddos.log + retention: 7