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