forked from ISTI-ansible-roles/ansible-roles
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:
parent
0bf4684361
commit
9adf0e8194
|
@ -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
|
||||
|
|
|
@ -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' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue