Dataminer: remove the dataminer war when the new one has been downloaded from maven.

This commit is contained in:
Andrea Dell'Amico 2017-09-13 16:35:12 +02:00
parent d1597d1784
commit e0fa10319d
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,6 @@
- dataminer_app_upgrade
tags: [ 'tomcat', 'dataminer', 'wps' ]
- block:
- name: Remove the old dataminer algorithm installer
file: path={{ smartgears_user_home }}/algorithmInstaller state=absent
@ -25,6 +24,11 @@
- block:
- name: Get and unpack the dataminer application
maven_artifact: artifact_id={{ dataminer_wps_name }} version={{ dataminer_wps_version | default(omit) }} group_id={{ dataminer_wps_group_id }} extension={{ dataminer_wps_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_user_home }}/{{ dataminer_wps_file }}
register: dataminer_app_downloaded
- name: Remove the old dataminer installation
file: path={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} state=absent
when: (dataminer_app_downloaded | changed)
- name: Create the dataminer wps working directory
file: path={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}