From 3e6e1cb893133e7ec11ea839cb4681beb94ccf85 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 9 Feb 2026 18:23:01 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Fix=20typo=20and=20add=20?= =?UTF-8?q?file=20permission=20in=20logrotate.yml=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a typo in the logrotate configuration file and adds necessary file permissions to ensure proper rotation of log files. --- tasks/logrotate.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/logrotate.yml b/tasks/logrotate.yml index 1db9a31..355835f 100644 --- a/tasks/logrotate.yml +++ b/tasks/logrotate.yml @@ -13,7 +13,7 @@ block: - - name: logrotate | Check if {{ item }} exists + - name: logrotate | Check if exists {{ item }} ansible.builtin.stat: path: "{{ item }}" register: logrotate_file @@ -22,12 +22,13 @@ when: logrotate_file.stat.exists block: - - name: logrotate | Backup {{ item }} once + - name: logrotate | Backup once {{ item }} ansible.builtin.copy: src: "{{ item }}" dest: "{{ item }}.original" owner: root group: root + mode: "0644" remote_src: true args: creates: "{{ item }}.original"