Hi,

> Thank you for your kind reply
> 
> No some target machine don’t have rsync installed.
> What to do in that case ?

install rsync on the target machines before using the synchronize
module. (For example using the ansible.builtin.package action:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html.)

Best regards,
Felix



> 
> Regards
> 
> On Thu, Nov 16, 2023 at 22:10, Dick Visser <dnmvis...@gmail.com>
> wrote:
> 
> >
> >
> > On Thu, 16 Nov 2023 at 13:56, Prady A <pradyumna....@gmail.com>
> > wrote: 
> >> Hi Experts
> >>
> >> One doubt with synchronize module
> >>
> >>  - name: Unix common script deployment
> >>     synchronize:
> >>           src: “{{ playbook_dir }}/shellscript”
> >>           Dest: /tmp/patch_impl
> >>      delegation_to: all
> >>
> >>  In this ansible code it is failing because to run synchronize we
> >> need rsynch module in both control as well as managed nodes. But
> >> to overcome that can we use container method? Inside the
> >> requirement.txt can we add rsync module to build a image out it
> >> and use in the template? 
> >
> > You can use whatever you want, as long as there will be a working
> > rsync command on both control and managed nodes.
> >
> > Dick

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20231116143634.388fd6ce%40rovaniemi.

Reply via email to