From 540684d659d1bd8de052aacbcf36a5a590ae715d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 28 Sep 2024 01:01:55 +0200 Subject: [PATCH] fix cron script permissions --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 07d0e71..c436c24 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -62,7 +62,9 @@ - name: Add cron scipt to renew certificates ansible.builtin.template: dest: "{{ __lego_base_dir }}/bin/cron-lego-renew.sh" - mode: "0755" + mode: "0700" + owner: root + group: root src: cron-lego-renew.sh.j2 - name: Add cron job to renew certificates