if ansible controller having no rsync command , it is showing following error
Could not chdir to home directory /home/unixawx: No such file or directory\nbash: rsync: command not found\nrsync: connection unexpectedly closed (0 bytes received so far) [Receiver]\nrsync error: remote command not found (code 127) at io.c(226) [Receiver=3.1.2]\n" Otherwise it is working perfectly . On Tuesday, February 25, 2020 at 8:23:37 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 2/25/20 3:49 PM, Janmejaya Swain wrote: > > Thanks Racke , its work for me > > > > Well if you don't mind please post your resulting task so other list > members can see how you use synchronize. > > Simply stating "it doesn't work" or "it works for me" without a task to > refer to doesn't really work for *me* :-) > > Regards > Racke > > > On Tuesday, February 25, 2020 at 6:42:31 PM UTC+5:30, Stefan Hornburg > (Racke) wrote: > > > > On 2/25/20 1:56 PM, Janmejaya Swain wrote: > > > Thank u Jordan and Dick , > > > > > > Can you please help to know , how can we fetch folder from remote > to controller as fetch module not supported folders > > > rather than files. > > > i can able to fetch multiple files but not able to fetch > folders . > > > > > > > Try the synchronize module in pull mode. > > > > Regards > > Racke > > > > > > > > On Wednesday, February 19, 2020 at 7:42:56 PM UTC+5:30, Janmejaya > Swain wrote: > > > > > > Hi , > > > > > > Can any one please help on this, which is very appreciable. > . > > > > > > --- > > > - hosts: all > > > remote_user: root > > > vars_files: > > > - json/UAT.json > > > > > > tasks: > > > - name: Generate configGen files > > > template: > > > src: /template/test.j2 > > > dest: /properties/test.properties > > > remote_src: yes > > > template_host: < host ip > > > > > > > > > > Error: > > > > > > ERROR! vars file /template/test.j2 was not found > > > > > > 15 > > > > > > Could not find file on the Ansible Controller. > > > > > > 16 > > > > > > If you are using a module and expect the file to exist on the > remote, see the remote_src option > > > > > > > > > In same way it showing it showing json/UAT.json was not found. > > > > > > > > > NOTE: Can you please help on it and we are using ansible 2.9. > > > > > > -- > > > 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 > > > [email protected] <javascript:> <mailto: > [email protected] <javascript:> > <javascript:>>. > > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/ansible-project/6bbf2b3b-d489-423d-bde2-3211e12be389%40googlegroups.com > > > < > https://groups.google.com/d/msgid/ansible-project/6bbf2b3b-d489-423d-bde2-3211e12be389%40googlegroups.com> > > > > > > > < > https://groups.google.com/d/msgid/ansible-project/6bbf2b3b-d489-423d-bde2-3211e12be389%40googlegroups.com?utm_medium=email&utm_source=footer > > > < > https://groups.google.com/d/msgid/ansible-project/6bbf2b3b-d489-423d-bde2-3211e12be389%40googlegroups.com?utm_medium=email&utm_source=footer>>. > > > > > > > > > > -- > > Ecommerce and Linux consulting + Perl and web application > programming. > > Debian and Sympa administration. Provisioning with Ansible. > > > > -- > > 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 > > [email protected] <javascript:> <mailto: > [email protected] <javascript:>>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/715b5bed-6591-422d-b43f-3c979122bb20%40googlegroups.com > > > < > https://groups.google.com/d/msgid/ansible-project/715b5bed-6591-422d-b43f-3c979122bb20%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > > > -- > Ecommerce and Linux consulting + Perl and web application programming. > Debian and Sympa administration. Provisioning with Ansible. > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a403d382-4160-4373-b823-0115f2ef7ae1%40googlegroups.com.
