library/roles/smartgears/dataminer_app/tasks/dataminer-app.yml: The dataminer algorithms must be copied on the right place, tomcat cannot read symlinks.

This commit is contained in:
Andrea Dell'Amico 2016-09-09 13:32:16 +02:00
parent 85596e2d1f
commit f864b8648e
1 changed files with 13 additions and 2 deletions

View File

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