forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/ckan_connector: New version. Task that permit the upgrades management.
This commit is contained in:
parent
487572aa6e
commit
130b6e3ced
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
gcube_repository: 'gcube-snapshots'
|
||||
gcube_repository: 'gcube-staging'
|
||||
ckan_connector_plugin_install: False
|
||||
ckan_connector_ver: 1.0.0
|
||||
ckan_connector_name: 'ckan_connector-{{ ckan_connector_ver }}-20160627.090904-1.war'
|
||||
ckan_connector_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/data/access/ckan_connector/{{ ckan_connector_ver}}-SNAPSHOT/{{ ckan_connector_name }}'
|
||||
ckan_connector_ver: 1.0.0-4.0.0-129609
|
||||
ckan_connector_name: 'ckan_connector-{{ ckan_connector_ver }}-{{ ckan_connector_ver }}.war'
|
||||
ckan_connector_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/data/access/ckan_connector/{{ ckan_connector_ver}}/{{ ckan_connector_name }}'
|
||||
ckan_connector_war_file: ckan-connector.war
|
||||
ckan_connector_user: ckan_connector
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
---
|
||||
- block:
|
||||
|
||||
- name: Remove the installed CKAN connector before upgrading
|
||||
file: dest={{ smartgears_instance_path }}/webapps/ckan-connector state=absent
|
||||
when: smartgears_upgrade
|
||||
|
||||
- name: Get the CKAN connector war file
|
||||
get_url: url={{ ckan_connector_url }} dest={{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue