Thanks Som Das.. On Tue, Jun 8, 2021 at 4:40 AM Som Das <somarko1...@gmail.com> wrote:
> Hi Vinod, > > You cannot use it like this directly, my suggestion would be to use a > shell script or try using shell command like this > > shell: | > set timeout 300 spawn ssh admin@{{ cimc_host }} > > hope this helps :-) > > On Tuesday, 8 June 2021 at 11:51:28 UTC+5:30 vinod...@gmail.com wrote: > >> Hello All, >> Need some help with yaml file >> >> I am trying to run find command to fetch old IP address from multiple >> files in /etc directory and replace them with new IP address as follows >> >> sudo find /etc -type f -exec sed -i -e 's/10.1.3.51/10.2.3.54/g' {} + >> >> I can accomplish this using the command but how do I do it using yaml >> file as i need to run it on multiple servers. >> >> Please help and thanks in advance. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Development" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-devel/cZ5pUYR_WR4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > ansible-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-devel/c21c718c-908e-4f1d-b32e-bf6d9cc887c8n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-devel/c21c718c-908e-4f1d-b32e-bf6d9cc887c8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thanks & Regards Vinod P +1 832 486 0526 -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/CAJ1_AU1L7CGPuZR9rRSZPgr12dy8BNrB0FXsZDMPsfPbpxkJZw%40mail.gmail.com.