From 333793e72fc5578e01acbe5dec1606bbe331744f Mon Sep 17 00:00:00 2001 From: mg Date: Mon, 24 Jan 2022 07:53:01 +0100 Subject: [PATCH] Bugfix: logrotate: Fileowner (#317) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/317 Co-authored-by: mg Co-committed-by: mg --- roles/mgrote.cv4pve-autosnap/tasks/main.yml | 2 +- roles/mgrote.ecc-rasdaemon/tasks/main.yml | 2 +- roles/mgrote.zfs_sanoid/tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/mgrote.cv4pve-autosnap/tasks/main.yml b/roles/mgrote.cv4pve-autosnap/tasks/main.yml index fbfe0a29..946c1722 100644 --- a/roles/mgrote.cv4pve-autosnap/tasks/main.yml +++ b/roles/mgrote.cv4pve-autosnap/tasks/main.yml @@ -65,6 +65,6 @@ ansible.builtin.template: src: logrotate_cv4pve dest: /etc/logrotate.d/cv4pve-autosnap - owner: "{{ cv4pve_user }}" + owner: root group: "{{ cv4pve_user_group }}" mode: 0644 diff --git a/roles/mgrote.ecc-rasdaemon/tasks/main.yml b/roles/mgrote.ecc-rasdaemon/tasks/main.yml index 0c8519e2..d0d6747c 100644 --- a/roles/mgrote.ecc-rasdaemon/tasks/main.yml +++ b/roles/mgrote.ecc-rasdaemon/tasks/main.yml @@ -38,7 +38,7 @@ ansible.builtin.template: src: logrotate_rasdaemon dest: /etc/logrotate.d/rasdaemon - owner: "{{ rasdaemon_user }}" + owner: root group: "{{ rasdaemon_user_group }}" mode: 0644 diff --git a/roles/mgrote.zfs_sanoid/tasks/main.yml b/roles/mgrote.zfs_sanoid/tasks/main.yml index d3e4dd50..9dd6d4d0 100644 --- a/roles/mgrote.zfs_sanoid/tasks/main.yml +++ b/roles/mgrote.zfs_sanoid/tasks/main.yml @@ -71,7 +71,7 @@ ansible.builtin.template: src: logrotate_sanoid dest: /etc/logrotate.d/sanoid - owner: "{{ sanoid_user }}" + owner: root group: "{{ sanoid_user_group }}" mode: 0644