From b9a631019544213714b61de56b8409f1db178583 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 17 Mar 2017 15:20:46 +0100 Subject: [PATCH] library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Correctly remove the state when instructed to do so. --- smartgears/smartgears/tasks/smartgears-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index 4ba96ea7..3af684e7 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -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' ]