forked from ISTI-ansible-roles/ansible-roles
../library/roles/smartgears/tabular_data/defaults/main.yml first defintion
../library/roles/smartgears/tabular_data/handlers/main.yml first definition ../library/roles/smartgears/tabular_data/tasks/main.yml first definition
This commit is contained in:
parent
d8cc2755f0
commit
fcff879965
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
gcube_repository: gcube-staging
|
||||
tabular_data_install: False
|
||||
tabular_data_version: 1.7.4-4.1.0-125864
|
||||
tabular_data_name: tabular-data-manager
|
||||
tabular_data_file: '{{ tabular_data_name }}-{{ tabular_data_version }}.war'
|
||||
tabular_data_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/data/analysis/tabulardata/{{tabular_data_name}}/{{ tabular_data_version }}/{{ tabular_data_file }}'
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Restart smartgears
|
||||
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- block:
|
||||
|
||||
- name: Remove the old tabulardata files
|
||||
file: path={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }} state=absent
|
||||
when: ( tabular_data_install ) or ( smartgears_upgrade )
|
||||
|
||||
|
||||
# NOTE: Install as the smartgears user so we do not mess with the permissions
|
||||
- name: Get the tabular-data-service
|
||||
get_url: url={{ tabular_data_url }} dest={{ smartgears_user_home }}/{{ tabular_data_file }}
|
||||
when: tabular_data_install
|
||||
|
||||
- name: Create the tabular data working directory
|
||||
file: path={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}
|
||||
when: tabula_data_install
|
||||
|
||||
- name: Unarchive the tabular data war
|
||||
unarchive: copy=no src={{ smartgears_user_home }}/{{ tabular_data_file }} dest={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }} creates={{ smartgears_instance_path }}/webapps/{{ tabular_data_name }}/WEB-INF/lib
|
||||
when: tabular_data_install
|
||||
notify: Restart smartgears
|
||||
|
||||
become: True
|
||||
become_user: '{{ d4science_user }}'
|
||||
tags: [ 'smartgears', 'tabular_data', 'tomcat' ]
|
Loading…
Reference in New Issue