From af1a3c872e9e9a1e02ab3adbef1f84e2b0b7b6ef Mon Sep 17 00:00:00 2001 From: Shamzic Date: Fri, 1 Sep 2023 11:50:24 +0200 Subject: [PATCH] =?UTF-8?q?Met=20=C3=A0=20jour=20la=20fr=C3=A9quence=20de?= =?UTF-8?q?=20lancement=20du=20script=20de=20statistiques=20(mensuelle)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/bootstrap/tasks/setup_cron.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/bootstrap/tasks/setup_cron.yaml b/roles/bootstrap/tasks/setup_cron.yaml index a6e1f51..e689173 100644 --- a/roles/bootstrap/tasks/setup_cron.yaml +++ b/roles/bootstrap/tasks/setup_cron.yaml @@ -31,12 +31,12 @@ name: anonymize simulation and followup data collections for {{ item.name }} minute: "0" hour: "5" - day: "1" job: (cd {{ repository_folder }} && {{ envvar_prefix }} npm run tools:cleaner) -- name: Create cron job to execute generate_mongo_stats.sh daily +- name: Create cron job to execute generate_mongo_stats.sh monthly become_user: "{{ server_user_name }}" ansible.builtin.cron: - name: Execute generate_mongo_stats.sh daily {{ item.name }} + name: Execute generate_mongo_stats.sh monthly {{ item.name }} minute: "0" hour: "0" + day: "1" job: (cd {{ repository_folder }} && {{ envvar_prefix }} npm run tools:generate-mongo-stats)