help with yaml file

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.

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

Thanks Som Das…