2016-06-13 16:24:30 +02:00
|
|
|
---
|
2016-10-05 10:37:46 +02:00
|
|
|
- block:
|
|
|
|
- name: Get and unpack the dataminer application
|
|
|
|
unarchive: src={{ dataminer_zip_url }} dest={{ smartgears_instance_path }}/webapps copy=no
|
|
|
|
notify: Restart smartgears
|
|
|
|
|
2016-10-05 13:31:10 +02:00
|
|
|
- name: Create a directory where to install the gebco_08.nc data file
|
|
|
|
file: path={{ smartgears_user_home }}/data state=directory
|
|
|
|
|
2016-10-05 10:37:46 +02:00
|
|
|
- name: Install the gebco_08.nc file from thredds. It is big, mostly 2GB
|
2016-10-05 13:31:10 +02:00
|
|
|
get_url: url={{ dataminer_data_file_from_thredds }} dest={{ smartgears_user_home }}/data/gebco_08.nc
|
|
|
|
|
|
|
|
- name: Create a symlink to the gebco_08.nc file
|
|
|
|
file: src={{ smartgears_user_home }}/data/gebco_08.nc dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/ecocfg/gebco_08.nc state=link
|
2016-10-05 10:37:46 +02:00
|
|
|
notify: Restart smartgears
|
2016-06-22 15:37:30 +02:00
|
|
|
|
2016-10-05 10:37:46 +02:00
|
|
|
- name: Install the script that fixes the WPS configuration
|
|
|
|
become: False
|
|
|
|
template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555
|
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
2016-09-08 14:47:44 +02:00
|
|
|
|
2016-10-05 10:37:46 +02:00
|
|
|
- name: Fix the WPS config file
|
|
|
|
shell: /usr/local/bin/wps-config-fixer
|
|
|
|
# notify: Restart smartgears
|
2016-06-13 16:24:30 +02:00
|
|
|
|
2016-06-23 12:15:37 +02:00
|
|
|
become: True
|
|
|
|
become_user: '{{ smartgears_user }}'
|
|
|
|
when: dataminer_app_install
|
|
|
|
tags: [ 'tomcat', 'dataminer', 'wps' ]
|
|
|
|
|