From 606df6553540087d45859d580ea78155cd7d2bd0 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Tue, 30 Mar 2021 07:45:52 +0200 Subject: [PATCH] Cleanup logrotate role --- roles/logrotate/tasks/main.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/roles/logrotate/tasks/main.yml b/roles/logrotate/tasks/main.yml index 58cbab9..2ccfaa8 100644 --- a/roles/logrotate/tasks/main.yml +++ b/roles/logrotate/tasks/main.yml @@ -1,9 +1,7 @@ --- -# Install the apt package - name: Install logrotate apt: - name: - - logrotate + name: logrotate state: present - name: Create rsyslog configuration directory @@ -27,8 +25,4 @@ name: logrotate.service enabled: true state: started - -# Enforce new logrotate rules now -- name: Run logrotate now - command: /usr/sbin/logrotate -f /etc/logrotate.d/rsyslog ...