Create a downloads directory inside the gcube home directory where to download all the smartgears related wars and jars.

This commit is contained in:
Andrea Dell'Amico 2017-09-13 18:19:18 +02:00
parent 1aad034435
commit 704f990d5c
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ smartgears_install_generic_virthost: True
smartgears_data_fs: /home
smartgears_user: '{{ d4science_user }}'
smartgears_user_home: '{{ d4science_user_home }}'
smartgears_downloads_dir: '{{ d4science_user_home }}/downloads'
smartgears_instance_path: '{{ smartgears_user_home }}/tomcat'
smartgears_install_path: '{{ smartgears_user_home }}/SmartGears'
smartgears_distribution_version: 2.1.2-4.6.1-146408

View File

@ -1,4 +1,8 @@
---
- name: Create a directory where to store all the smartgears related downloads to avoid cluttering the home directory
file: dest={{ smartgears_downloads_dir }} state=directory
tags: [ 'smartgears', 'tomcat' ]
- name: Remove the smartgears distribution archive to force un upgrade
file: dest={{ item }} state=absent
with_items:
@ -79,7 +83,6 @@
notify: Restart smartgears
tags: [ 'smartgears', 'smartgears_conf', 'tomcat', 'logback_conf' ]
- name: Remove some wrong symbolic links created by the install/upgrade script
file: dest={{ item }} state=absent
with_items: