Skip to content

Commit

Permalink
Use manual rsync command
Browse files Browse the repository at this point in the history
synchronize doesn't really work when src and dest are both remote
  • Loading branch information
xmunoz committed Dec 31, 2020
1 parent 7526101 commit 51d4c5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
8 changes: 1 addition & 7 deletions provisioners/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@
remote_src: yes
loop: "{{ repos }}"
- name: Rsync temprorary directory to deployment directory
become_user: deployer
synchronize:
src: "{{ temp_dir }}/{{ item }}"
dest: "{{ deploy_dir }}/{{ item }}"
recursive: yes
delete: yes
delegate_to: "{{ inventory_hostname }}"
command: "rsync -avzh {{ temp_dir }}/{{ item }} {{ deploy_dir }} --delete"
loop: "{{ repos }}"
- name: Remove temporary directory
become_user: deployer
Expand Down
8 changes: 1 addition & 7 deletions provisioners/deploy-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@
remote_src: yes
loop: "{{ repos }}"
- name: Rsync temprorary directory to deployment directory
become_user: deployer
synchronize:
src: "{{ temp_dir }}/{{ item }}"
dest: "{{ deploy_dir }}/{{ item }}"
recursive: yes
delete: yes
delegate_to: "{{ inventory_hostname }}"
command: "rsync -avzh {{ temp_dir }}/{{ item }} {{ deploy_dir }} --delete"
loop: "{{ repos }}"
- name: Remove temporary directory
become_user: deployer
Expand Down
8 changes: 1 addition & 7 deletions provisioners/deploy-taskrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@
remote_src: yes
loop: "{{ repos }}"
- name: Rsync temprorary directory to deployment directory
become_user: deployer
synchronize:
src: "{{ temp_dir }}/{{ item }}"
dest: "{{ deploy_dir }}/{{ item }}"
recursive: yes
delete: yes
delegate_to: "{{ inventory_hostname }}"
command: "rsync -avzh {{ temp_dir }}/{{ item }} {{ deploy_dir }} --delete"
loop: "{{ repos }}"
- name: Remove temporary directory
become_user: deployer
Expand Down

0 comments on commit 51d4c5f

Please sign in to comment.