From e72ba9235535069f58f9014776ea22a7b21c9d81 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Jul 2016 19:17:39 +0200 Subject: [PATCH] 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'. --- smartgears/smart_executor/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/smartgears/smart_executor/tasks/main.yml b/smartgears/smart_executor/tasks/main.yml index d2d462ce..a3899d12 100644 --- a/smartgears/smart_executor/tasks/main.yml +++ b/smartgears/smart_executor/tasks/main.yml @@ -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