library/roles/smartgears/resource_registry: Add a variable to manage the resource registry upgrade.

This commit is contained in:
Andrea Dell'Amico 2016-09-29 18:45:00 +02:00
parent 2c5609d20e
commit ff54c3654c
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
--- ---
resource_registry_install: False resource_registry_install: False
resource_registry_upgrade: False
resource_registry_gcube_repository: gcube-snapshots resource_registry_gcube_repository: gcube-snapshots
resource_registry_snapshot_ver: 1.1.0-SNAPSHOT resource_registry_snapshot_ver: 1.1.0-SNAPSHOT
resource_registry_version: 1.1.0-20160929.151332-7 resource_registry_version: 1.1.0-20160929.151332-7

View File

@ -3,11 +3,11 @@
- name: Remove the old smart executor files if present - name: Remove the old smart executor files if present
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent
when: ( not smart_executor_install ) or ( smartgears_upgrade ) when: resource_registry_upgrade
- name: Remove the old resource-registry files - name: Remove the old resource-registry files
file: path={{ smartgears_instance_path }}/webapps/{{ resource_registry_name }} state=absent file: path={{ smartgears_instance_path }}/webapps/{{ resource_registry_name }} state=absent
when: ( not resource_registry_install ) or ( smartgears_upgrade ) when: resource_registry_upgrade
# NOTE: Install as the smartgears user so we do not mess with the permissions # NOTE: Install as the smartgears user so we do not mess with the permissions
- name: Get the resource-registry-service - name: Get the resource-registry-service