Re: [ansible-project] Print output of multiple host in a single file

2021-06-03 Thread R.B. Kumar
Thank you. I will try today and get back. On Wednesday, June 2, 2021 at 11:35:46 PM UTC+5:30 dmc...@gmail.com wrote: > Have you tried Ansibledb? It seems a waste to only get one piece of > information. > > AnsibleDB can take in the output of the setup module and store it so you > can just

Re: [ansible-project] Print output of multiple host in a single file

2021-06-02 Thread dmc...@gmail.com
Have you tried Ansibledb? It seems a waste to only get one piece of information. AnsibleDB can take in the output of the setup module and store it so you can just run curl commands against the API and pull out the version you're after from all your cisco routers at once. in your case, you'd

Re: [ansible-project] Print output of multiple host in a single file

2021-06-02 Thread R.B. Kumar
Thank you. Let me try and let you know On Wednesday, June 2, 2021 at 6:01:50 PM UTC+5:30 navee...@gmail.com wrote: > May be u can use with_items module. > > On Wed, Jun 2, 2021, 17:52 R.B. Kumar wrote: > >> Hello All - Some basics. I have 50+ Cisco Routers. I am running a ansible >> script to

Re: [ansible-project] Print output of multiple host in a single file

2021-06-02 Thread NAVEEN
May be u can use with_items module. On Wed, Jun 2, 2021, 17:52 R.B. Kumar wrote: > Hello All - Some basics. I have 50+ Cisco Routers. I am running a ansible > script to execute "show version" command. The script works well. I am > copying the output to a file > > But every host creates one