forked from ISTI-ansible-roles/ansible-roles
Dataminer: remove the dataminer war when the new one has been downloaded from maven.
This commit is contained in:
parent
d1597d1784
commit
e0fa10319d
|
@ -10,7 +10,6 @@
|
||||||
- dataminer_app_upgrade
|
- dataminer_app_upgrade
|
||||||
tags: [ 'tomcat', 'dataminer', 'wps' ]
|
tags: [ 'tomcat', 'dataminer', 'wps' ]
|
||||||
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Remove the old dataminer algorithm installer
|
- name: Remove the old dataminer algorithm installer
|
||||||
file: path={{ smartgears_user_home }}/algorithmInstaller state=absent
|
file: path={{ smartgears_user_home }}/algorithmInstaller state=absent
|
||||||
|
@ -25,6 +24,11 @@
|
||||||
- block:
|
- block:
|
||||||
- name: Get and unpack the dataminer application
|
- 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 }}
|
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
|
- name: Create the dataminer wps working directory
|
||||||
file: path={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
file: path={{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||||
|
|
Loading…
Reference in New Issue