# Need help with yaml

**URL:** <https://forum.ansible.com/t/need-help-with-yaml/35305>\
**Category:** AWX Project\
**Created:** [June 8, 2021, 6:22am UTC](https://forum.ansible.com/t/need-help-with-yaml/35305 "2021-06-08T06:22:48Z")\
**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:22am UTC](https://forum.ansible.com/t/need-help-with-yaml/35305/1 "2021-06-08T06:22:48Z")

</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:** ![Thiago\_Castro](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@Thiago\_Castro](https://forum.ansible.com/u/Thiago_Castro)\
**Post date:** [June 8, 2021, 7:22pm UTC](https://forum.ansible.com/t/need-help-with-yaml/35305/2 "2021-06-08T19:22:33Z")

</div>

You can create a task just like that:

---

<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/need-help-with-yaml/35305/3 "2021-06-09T23:45:49Z")

</div>

Thank you …
