Skip to content

Commit 2a66055

Browse files
committed
Rescue needs vars too
1 parent 5c19e3a commit 2a66055

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

roles/maps/tasks/download_large_file.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
vars:
6363
# Where the file eventually goes
6464
dest_path: "{{ dest_base_path }}/{{ item }}"
65+
6566
log_file: "{{ item }}.log"
6667
working_dir: "/library/downloads/maps"
6768
register: download_file_size
@@ -99,6 +100,7 @@
99100
vars:
100101
# Where the file eventually goes
101102
dest_path: "{{ dest_base_path }}/{{ item }}"
103+
102104
log_file: "{{ item }}.log"
103105
working_dir: "/library/downloads/maps"
104106
rescue:
@@ -116,3 +118,6 @@
116118
echo "aria2c error:" 1>&2
117119
tac "{{ log_file }}" | sed '/'"Download Progress Summary as of"'/q' | tac 1>&2
118120
exit 1
121+
vars:
122+
log_file: "{{ item }}.log"
123+
working_dir: "/library/downloads/maps"

0 commit comments

Comments
 (0)