ansible error: Failed to find required executable rsync in paths:

Ankit 41 Reputation points
2021-11-14T17:09:07.413+00:00

I am having problem running my image devops pipeline. The error i am receiving is ansible error: Failed to find required executable rsync in paths:
Can someone please help me with this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,336 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tasadduq Burney 8,681 Reputation points MVP
    2021-11-14T17:15:04.607+00:00

    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 -|

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.