From 62deaafb2c29bfdff3cf8f164ad987d6f67e04f2 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 15 May 2017 13:02:13 +0200 Subject: [PATCH] library/roles/smartgears/dataminer_app/tasks/dataminer-app.yml: Install a cron job that performs a 'svn update' of the algorithms repository. --- smartgears/dataminer_app/tasks/dataminer-app.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index 814dc78..5816af0 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -16,6 +16,9 @@ - name: Download the WPS algorithms from subversion subversion: repo={{ dataminer_wps_algorithms_svn }} dest={{ smartgears_user_home }}/wps_algorithms/algorithms checkout=yes force=yes update=yes + - name: Cron job that updates the algorithms repository + cron: name="SVN update the algorithms repository" minute="*/10" job="cd {{ smartgears_user_home }}/wps_algorithms/algorithms ; svn update > {{ smartgears_user_home }}/algorithms_updater.log 2>&1" user='{{ smartgears_user }}' state=present + - name: Create a directory where to install the gebco_08.nc data file file: path={{ smartgears_user_home }}/data state=directory