library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Correctly remove the state when instructed to do so.
This commit is contained in:
parent
e49d3be780
commit
b9a6310195
|
@ -88,9 +88,9 @@
|
|||
when: gcube_admin_token is defined
|
||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||
|
||||
- name: Remove the smartgears application state if the configuration changed
|
||||
- name: Remove the smartgears application state if requested
|
||||
#file: dest={{ smartgears_install_path }}/state state=absent
|
||||
file: dest=/home/gcube/Smartgears/state state=absent
|
||||
file: dest=/home/gcube/SmartGears/state state=absent
|
||||
when: smartgears_remove_state
|
||||
notify: Restart smartgears
|
||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||
|
@ -115,7 +115,7 @@
|
|||
when: smartgears_upgrade
|
||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||
|
||||
- name: Forse a smartgears restart
|
||||
- name: Force a smartgears restart
|
||||
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
|
||||
when: smartgears_force_restart is defined and smartgears_force_restart
|
||||
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
|
||||
|
|
Loading…
Reference in New Issue