updated dependencies
diff --git a/meta/main.yml b/meta/main.yml
index 2e02f8a..a908563 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -167,4 +167,5 @@
# NOTE: A tag is limited to a single word comprised of
# alphanumeric characters. Maximum 20 tags per role.
-dependencies: []
\ No newline at end of file
+dependencies:
+- { role: opdk-setup-default-settings }
diff --git a/tasks/main.yml b/tasks/main.yml
index 68787dc..0c39669 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,12 +1,23 @@
---
# tasks file for opdk-setup-local-repository
-- name: Download archive
- fetch:
- src: '{{ archive_path }}'
- dest: '{{ archive_name }}'
- flat: yes
- register: result
+- block:
+ - name: Download archive
+ fetch:
+ src: '{{ archive_path }}'
+ dest: '{{ archive_name }}'
+ flat: yes
+ register: result
-- name: Download archive status report
- debug:
- var: result
+ rescue:
+ - name: First scp download attempt failed, trying with rsync
+ synchronize:
+ mode: pull
+ src: '{{ archive_path }}'
+ dest: '{{ archive_name }}'
+ register: result
+
+ always:
+
+ - name: Download archive status report
+ debug:
+ var: result