ansible-roles/smartgears/dataminer_app/tasks/dataminer-external-files.yml

20 lines
753 B
YAML

---
- block:
- name: Create a directory where to install the gebco_08.nc data file
file: path={{ smartgears_user_home }}/data state=directory
- name: Install the gebco_08.nc file from thredds. It is big, mostly 2GB
get_url: url={{ dataminer_data_file_from_thredds }} dest={{ smartgears_user_home }}/data/gebco_08.nc timeout=2400
- 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_wps_name }}/ecocfg/gebco_08.nc state=link
notify: Restart smartgears
become: True
become_user: '{{ smartgears_user }}'
when:
- dataminer_app_install
- dataminer_download_gebco_file
tags: [ 'tomcat', 'dataminer', 'wps' ]