From 0b46140771d4ee2c9be967f1893db08f56abf253 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 08:21:05 +0200 Subject: [PATCH] Cron file must be owned by root --- ansible/roles/2-nk20/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/2-nk20/tasks/main.yml b/ansible/roles/2-nk20/tasks/main.yml index 0649dee6..19dcdbbd 100644 --- a/ansible/roles/2-nk20/tasks/main.yml +++ b/ansible/roles/2-nk20/tasks/main.yml @@ -41,3 +41,9 @@ systemd: name: cron state: restarted + +- name: Update permissions for the cron file + file: + path: /var/www/note_kfet/note.cron + owner: root + group: www-data