forked from ISTI-ansible-roles/ansible-roles
../library/roles/smartgears/sdmx_datasource_service add new role
This commit is contained in:
parent
33ada02ff7
commit
f5f52df75e
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
sdmx_datasource_service_install: False
|
||||
sdmx_datasource_service_upgrade: False
|
||||
sdmx_datasource_service_version: latest
|
||||
sdmx_datasource_service_name: sdmx-datasource-service
|
||||
|
||||
sdmx_datasource_group_id: org.gcube.data.publishing
|
||||
sdmx_datasource_extension: war
|
||||
sdmx_datasource_service_file: '{{ sdmx_datasource_service_name }}-{{ sdmx_datasource_service_version }}.{{ sdmx_datasource_extension }}'
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- block:
|
||||
- name: Remove the old service files
|
||||
file: path={{ item }} state=absent
|
||||
with_items:
|
||||
- '{{ smartgears_instance_path }}/webapps/{{ sdmx_datasource_service_name }}'
|
||||
- '{{ smartgears_instance_path }}/webapps/{{ sdmx_datasource_service_name }}.{{ sdmx_datasource_extension }}'
|
||||
|
||||
become: True
|
||||
become_user: '{{ d4science_user }}'
|
||||
when: not sdmx_datasource_service_install
|
||||
tags: [ 'smartgears', 'sdmx_datasource_service', 'tomcat' ]
|
||||
|
||||
- block:
|
||||
- name: Get the sdmx_datasource-service
|
||||
maven_artifact: artifact_id={{ sdmx_datasource_service_name }} version={{ sdmx_datasource_service_version | default('latest') }} group_id={{ sdmx_datasource_group_id }} extension={{ sdmx_datasource_extension | default('war') }} repository_url={{ smartgears_global_base_url }} dest={{ smartgears_downloads_dir }}/{{ sdmx_datasource_service_file }}
|
||||
register: sdmx_datasource_service_download
|
||||
|
||||
- name: Remove the old service files
|
||||
file: path={{ smartgears_instance_path }}/webapps/{{ sdmx_datasource_service_name }} state=absent
|
||||
when: ( sdmx_datasource_service_download | changed )
|
||||
|
||||
- name: Copy the service war file into the webapps directory
|
||||
copy: src={{ smartgears_downloads_dir }}/{{ sdmx_datasource_service_file }} dest={{ smartgears_instance_path }}/webapps/{{ sdmx_datasource_service_name }}.{{ sdmx_datasource_extension }} remote_src=yes force=yes
|
||||
notify: Restart smartgears
|
||||
|
||||
become: True
|
||||
become_user: '{{ d4science_user }}'
|
||||
when: sdmx_datasource_service_install
|
||||
tags: [ 'smartgears', 'sdmx_datasource_service', 'tomcat' ]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
social_networking_library_ws_install: False
|
||||
social_networking_library_ws_version: 2.1.0-4.10.0-152935
|
||||
social_networking_library_ws_version: 2.1.1-4.10.0-162415
|
||||
social_networking_library_ws_name: social-networking-library-ws
|
||||
social_networking_library_ws_group_id: org.gcube.portal
|
||||
social_networking_library_ws_extension: war
|
||||
|
|
Loading…
Reference in New Issue