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