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