Hello @Ankit !
Hope you are having a great day!
Thank you for asking a Question! We are Glad to Assist you!
As per the error, what I can conclude is that rsync is not present/installed and hence you are receiving the above stated error.
You can automate installation of base packages on your node. Sharing here apt module definition of the same.
- name: "Installing Rsync"
apt: >
pkg={{ item }}
state=latest
update_cache=yes
cache_valid_time=3600
with_items:
- rsync
Yum module definition would look something like below.
- name: install the latest version of rsync
yum:
name: rsync
state: latest
You can also install rsync using the below mentioned commands.
On Centos:
yum install -y rsync
On Ubuntu:
apt install -y rsync
Let me know if the above solution resolved your issue!
Regards,
Tasadduq Burney
__
|- Please don't forget to "Upvote" and "Accept as answer" if the reply is helpful -|