# How to create .yml file to work with 10 routers with 2 different command.

**URL:** <https://forum.ansible.com/t/how-to-create-yml-file-to-work-with-10-routers-with-2-different-command/23074>\
**Category:** Ansible Developer\
**Created:** [November 22, 2016, 11:20am UTC](https://forum.ansible.com/t/how-to-create-yml-file-to-work-with-10-routers-with-2-different-command/23074 "2016-11-22T11:20:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.ansible.com/u/Satish)\
**Post date:** [November 22, 2016, 11:20am UTC](https://forum.ansible.com/t/how-to-create-yml-file-to-work-with-10-routers-with-2-different-command/23074/1 "2016-11-22T11:20:18Z")

</div>

Hello Team,

I need your support to create .yml file.

**Scenario ::** I have installed and configured Ansible and it is properly working. I have manually executed command (show isis neighbors) for one device and its return correct output.

Now I want to run commands (show isis neighbors and show ip bgp summary) on 20 different devices by using PHP and Ansible.

For this I need to create .yml file to GROUP 20 devices (Loopback0).

**So team, please guide me how to create same .YML file ??**

**OR**

**If you know any other way to run these two commands on 20 devices to collect the output then, p\*\*\*\*lease let me know.**

Thanking you.
