2016-10-26 12:37:38 +02:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Remove the old tabulardata files
|
2017-10-19 19:02:44 +02:00
|
|
|
file: path={{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ tabular_data_name }}'
|
|
|
|
- '{{ smartgears_instance_path }}/webapps/{{ tabular_data_name }}.{{ tabular_extension }}'
|
2016-10-26 12:37:38 +02:00
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
2017-10-19 19:02:44 +02:00
|
|
|
when: not tabular_data_install
|
2017-02-28 15:20:57 +01:00
|
|
|
tags: [ 'smartgears', 'tabular_data', 'tomcat' ]
|
|
|
|
|
|
|
|
- block:
|
2017-10-19 19:02:44 +02:00
|
|
|
- name: Get the tabular-data-service
|
|
|
|
maven_artifact: artifact_id={{ tabular_data_name }} version={{ tabular_data_version | default('latest') }} group_id={{ tabular_group_id }} extension={{ tabular_extension }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ tabular_data_file }}
|
|
|
|
register: tabular_data_download
|
|
|
|
|
2017-02-28 15:20:57 +01:00
|
|
|
- name: Remove the old tabulardata files
|
|
|
|
file: path={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }} state=absent
|
2017-10-19 19:02:44 +02:00
|
|
|
when: ( tabular_data_download | change )
|
|
|
|
|
|
|
|
- name: Copy the tabular data war into the webapps directory
|
|
|
|
copy: src={{ smartgears_downloads_dir }}/{{ tabular_data_file }} dest={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }}.{{ tabular_extension }} remote_src=yes force=yes
|
|
|
|
notify: Restart smartgears
|
2017-02-28 15:20:57 +01:00
|
|
|
|
|
|
|
become: True
|
|
|
|
become_user: '{{ d4science_user }}'
|
2017-10-19 19:02:44 +02:00
|
|
|
when: tabular_data_install
|
2016-10-26 12:37:38 +02:00
|
|
|
tags: [ 'smartgears', 'tabular_data', 'tomcat' ]
|
2017-10-19 19:02:44 +02:00
|
|
|
|