library/roles/smartgears/smartgears: do not remove the state when upgrading the service. Now to force a state removal the variabile smartgears_remove_state must be set to True.

This commit is contained in:
Andrea Dell'Amico 2016-11-03 16:35:38 +01:00
parent 0bf4684361
commit 9adf0e8194
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ gcube_repository_stagin_test: 'gcube-staging-test'
# distribution version
smartgears_upgrade: False
smartgears_force_install: False
smartgears_remove_state: False
smartgears_node: True
smartgears_install_generic_virthost: True

View File

@ -89,7 +89,7 @@
- name: Remove the smartgears application state if the configuration changed
file: dest={{ smartgears_install_path }}/state state=absent
when: ( containerxml_state | changed )
when: smartgears_remove_state
notify: Restart smartgears
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]