d4science-ghn-cluster: Change the smart_executor conditional.

library/roles/smartgears/smart_executor/tasks/main.yml: Change the conditionals so we can let the role remove the application when smart_executor_install is set to 'False'.
This commit is contained in:
Andrea Dell'Amico 2016-07-15 19:17:39 +02:00
parent bac130afce
commit e72ba92355
1 changed files with 1 additions and 3 deletions

View File

@ -3,9 +3,7 @@
- name: Remove the old smart executor files
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=absent
when:
- smart_executor_install
- smartgears_upgrade
when: ( not smart_executor_install ) or ( smartgears_upgrade )
# NOTE: Install as the smartgears user so we do not mess with the permissions
- name: Get the smart executor plugin