updated logs
diff --git a/tasks/download_files.yml b/tasks/download_files.yml index 832173a..8dc505d 100644 --- a/tasks/download_files.yml +++ b/tasks/download_files.yml
@@ -9,5 +9,5 @@ with_items: "{{ result.files }}" loop_control: loop_var: file - when: result.matched > 0 + when: result.matched > 0 and result.files | length > 0
diff --git a/tasks/main.yml b/tasks/main.yml index 36cab15..6ef64ac 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -20,7 +20,7 @@ - name: Iterate over patterns found include: download_files.yml - with_items: downloads.results + with_items: "{{ downloads.results }}" loop_control: loop_var: result