# help with yaml file

**URL:** <https://forum.ansible.com/t/help-with-yaml-file/35304>\
**Category:** Ansible Developer\
**Created:** [June 8, 2021, 6:21am UTC](https://forum.ansible.com/t/help-with-yaml-file/35304 "2021-06-08T06:21:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [June 8, 2021, 6:21am UTC](https://forum.ansible.com/t/help-with-yaml-file/35304/1 "2021-06-08T06:21:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Som\_Das](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Som\_Das](https://forum.ansible.com/u/Som_Das)\
**Post date:** [June 8, 2021, 8:40am UTC](https://forum.ansible.com/t/help-with-yaml-file/35304/2 "2021-06-08T08:40:55Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [June 9, 2021, 11:45pm UTC](https://forum.ansible.com/t/help-with-yaml-file/35304/3 "2021-06-09T23:45:24Z")

</div>

Thanks Som Das…
