From 7bdfd8ce0709f4c8012f6e79b1d81268fe8b2347 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 4 Jan 2018 16:13:11 +0100 Subject: [PATCH] library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the task that removes the old smartgears distributions. See https://support.d4science.org/issues/10711 --- smartgears/smartgears/tasks/smartgears-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartgears/smartgears/tasks/smartgears-app.yml b/smartgears/smartgears/tasks/smartgears-app.yml index e8316e0b..934d296b 100644 --- a/smartgears/smartgears/tasks/smartgears-app.yml +++ b/smartgears/smartgears/tasks/smartgears-app.yml @@ -19,7 +19,7 @@ tags: [ 'smartgears', 'smartgears_distribution', 'tomcat' ] - name: Remove the smartgears-distribution files - shell: find . -type d -name {{ smartgears_downloads_dir }}/smartgears-distribution-\* -exec rm -fr {} \; + shell: find {{ smartgears_downloads_dir }} -type d -name smartgears-distribution-\* -exec rm -fr {} \; when: ( smartgears_download | changed ) tags: [ 'smartgears', 'smartgears_distribution', 'tomcat' ]