Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit ad7674c

Browse files
committed
also install Rsync on the other side if needed
1 parent 055d1d0 commit ad7674c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@
9898
remote_user: "{{ rsync_user }}"
9999
when: rsync_server is defined and rsync_location is defined and rsync_user is defined
100100

101+
- name: Install Rsync on the other side
102+
package:
103+
name: "{{ rsync_package }}"
104+
state: present
105+
delegate_to: "{{ rsync_server }}"
106+
when: rsync_url != ''
107+
101108
- name: Compute SSH config for rsync sync
102109
set_fact:
103110
remote_user: "{{ rsync_user }}"

vars/Debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
rsync_package: rsync
23
package_list:
34
- ruby-bundler
45
- ruby-dev

vars/RedHat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
rsync_package: rsync
23
package_list:
34
- rubygem-bundler
45
- ruby-devel

0 commit comments

Comments
 (0)