library/roles/smartgears/smartgears: directly unarchive the distribution without saving the tar file locally.

This commit is contained in:
Andrea Dell'Amico 2016-10-05 17:54:32 +02:00
parent 549e18af31
commit cc6a29ce51
2 changed files with 3 additions and 8 deletions

View File

@ -1,7 +1,7 @@
---
- block:
- name: Get and unpack the dataminer application
unarchive: src={{ dataminer_zip_url }} dest={{ smartgears_instance_path }}/webapps copy=no
unarchive: src={{ dataminer_zip_url }} dest={{ smartgears_instance_path }}/webapps copy=no creates={{ smartgears_instance_path }}/webapps/wps/config/wps_config.xml
notify: Restart smartgears
- name: Create a directory where to install the gebco_08.nc data file

View File

@ -7,16 +7,11 @@
when: smartgears_force_install
tags: [ 'smartgears', 'tomcat' ]
- name: Get the smartgears distribution
get_url: url={{ smartgears_url }} dest={{ smartgears_user_home }}/{{ smartgears_file }}
register: new_smartgears_distribution
tags: [ 'smartgears', 'tomcat' ]
- name: Unarchive the smartgears distribution
become: True
become_user: '{{ smartgears_user }}'
unarchive: copy=no src={{ smartgears_user_home }}/{{ smartgears_file }} dest={{ smartgears_user_home }} creates={{ smartgears_user_home }}/smartgears-distribution-{{ smartgears_distribution_version }}
when: ( new_smartgears_distribution | changed )
unarchive: copy=no src={{ smartgears_url }} dest={{ smartgears_user_home }} creates={{ smartgears_user_home }}/smartgears-distribution-{{ smartgears_distribution_version }}
register: new_smartgears_distribution
tags: [ 'smartgears', 'tomcat' ]
- name: Stop the smartgears container before launching the upgrade script