diff --git a/smartgears/ckan_connector/defaults/main.yml b/smartgears/ckan_connector/defaults/main.yml index 7b36849e..2896f5a9 100644 --- a/smartgears/ckan_connector/defaults/main.yml +++ b/smartgears/ckan_connector/defaults/main.yml @@ -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 diff --git a/smartgears/ckan_connector/tasks/main.yml b/smartgears/ckan_connector/tasks/main.yml index 1fa412ff..ed6400fc 100644 --- a/smartgears/ckan_connector/tasks/main.yml +++ b/smartgears/ckan_connector/tasks/main.yml @@ -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 }}