diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index aca1d945..defd1bfc 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -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 }}