From e0fc0c8e63e09f127f0ea3c2e2cd8bbe3426ad17 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 7 Feb 2018 12:46:51 +0100 Subject: [PATCH] library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the task that removes the old smartgears distributions. --- 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 f99f3e73..02cb1afc 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 {{ smartgears_downloads_dir }} -type d -name smartgears-distribution-\* -exec rm -fr {} \; + shell: find {{ smartgears_downloads_dir }} -maxdepth 1 -type d -name smartgears-distribution-* -exec rm -fr {} \; ignore_errors: yes when: ( smartgears_download | changed ) tags: [ 'smartgears', 'smartgears_distribution', 'tomcat']