simplified file downloads
diff --git a/tasks/download_files.yml b/tasks/download_files.yml
index df8b667..c3520cf 100644
--- a/tasks/download_files.yml
+++ b/tasks/download_files.yml
@@ -1,4 +1,9 @@
---
+- name: Validate that we a download_folder
+ fail:
+ msg: "Please specify a local download folder: -e download_folder=<local download folder>"
+ when: download_folder is not defined
+
- name: Download files
fetch:
src: "{{ item.path }}"
diff --git a/tasks/main.yml b/tasks/main.yml
index 4094160..9b1b5a7 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,17 +1,12 @@
---
# tasks file for fetch-found-files
-- name: Validate that we a download_folder
- fail:
- msg: "Please specify a local download folder: -e download_folder=<local download folder>"
- when: download_folder is not defined
-
- name: Validate that we have download_pattern
fail:
msg: "Please provide a download_pattern list that follows dir: 'directory name', pattern: 'file pattern'"
when: download_pattern is not defined
-- name: Create download folder
- local_action: file path={{ download_folder }} state=directory
+#- name: Create download folder
+# local_action: file path={{ download_folder }} state=directory
- name: Find download log files
find: