From f864b8648e913ae5215447a2a20e8a9eeb2450ef Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 9 Sep 2016 13:32:16 +0200 Subject: [PATCH] library/roles/smartgears/dataminer_app/tasks/dataminer-app.yml: The dataminer algorithms must be copied on the right place, tomcat cannot read symlinks. --- smartgears/dataminer_app/tasks/dataminer-app.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index 7f50695b..3862781d 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -115,10 +115,21 @@ - name: Download the dataminer algorithms jars from subversion become: True become_user: '{{ smartgears_user }}' - subversion: repo={{ dataminer_algorithms_repo }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib + subversion: repo={{ dataminer_algorithms_repo }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib/.algorithms notify: Restart smartgears + register: dataminer_algorithms when: dataminer_app_install - tags: [ 'tomcat', 'dataminer', 'wps' ] + tags: [ 'tomcat', 'dataminer', 'wps', 'wps_algorithms' ] + +- name: Move the dataminer algorithms jars to the right place + become: True + become_user: '{{ smartgears_user }}' + shell: cd {{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib ; mv {{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib/.algorithms/*.jar . + notify: Restart smartgears + when: + - dataminer_app_install + - ( dataminer_algorithms | changed ) + tags: [ 'tomcat', 'dataminer', 'wps', 'wps_algorithms' ] - name: Install the wps config file become: True