From d7216c4e4eb655d038d7d61fb1b23f7396408f43 Mon Sep 17 00:00:00 2001 From: Romain Sauvaire Date: Wed, 27 Jul 2022 11:10:36 +0200 Subject: [PATCH] feat: ajout cron dans le playbook setup --- .infra/cegedim/setup.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.infra/cegedim/setup.yaml b/.infra/cegedim/setup.yaml index 991553f0..9d2e461a 100644 --- a/.infra/cegedim/setup.yaml +++ b/.infra/cegedim/setup.yaml @@ -98,3 +98,11 @@ ansible.builtin.file: path: /opt/pdigi state: directory + + - name: ajout cron server batch + cron: + name: "server jobs" + minute: "15" + hour: "*" + weekday: "*" + job: "docker exec cerfa_server yarn --silent jobs >> /var/log/server-jobs.log"