library/roles/smartgears/smartgears/tasks/smartgears-app.yml: Fix the task that removes the old smartgears distributions.

This commit is contained in:
Andrea Dell'Amico 2018-02-07 12:46:51 +01:00
parent 42e314b836
commit e0fc0c8e63
1 changed files with 1 additions and 1 deletions

View File

@ -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']