Updated to use rsync
diff --git a/tasks/main.yml b/tasks/main.yml
index f4ef36d..998a89d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -18,10 +18,11 @@
state: present
- name: Use rsync to copy to remote node
+ delegate_to: '{{ inventory_hostname }}'
synchronize:
mode: pull
dest: '{{ local_resource_path }}/{{ archive_name }}'
- src: "rsync://{{ hostvars[groups['mirror'][0]]['local_address'] }}/{{ archive_folder }}"
+ src: "rsync://{{ hostvars[groups['mirror'][0]]['local_address'] }}{{ archive_path }}"