library/roles/smartgears/dataminer_app/tasks/dataminer-app.yml: Install a cron job that performs a 'svn update' of the algorithms repository.

This commit is contained in:
Andrea Dell'Amico 2017-05-15 13:02:13 +02:00
parent 7b916e8fc1
commit 62deaafb2c
1 changed files with 3 additions and 0 deletions

View File

@ -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