library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Correctly remove the state when instructed to do so.

This commit is contained in:
Andrea Dell'Amico 2017-03-17 15:20:46 +01:00
parent e49d3be780
commit b9a6310195
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@
when: gcube_admin_token is defined when: gcube_admin_token is defined
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ] 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={{ 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 when: smartgears_remove_state
notify: Restart smartgears notify: Restart smartgears
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ] tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
@ -115,7 +115,7 @@
when: smartgears_upgrade when: smartgears_upgrade
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ] tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]
- name: Forse a smartgears restart - name: Force a smartgears restart
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted
when: smartgears_force_restart is defined and smartgears_force_restart when: smartgears_force_restart is defined and smartgears_force_restart
tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ] tags: [ 'smartgears', 'smartgears_conf', 'tomcat' ]