[ansible-project] Re: Cisco IOS backup and write to file with timestamp

2017-07-10 Thread Murugan Gan
Hi Team, I have created sh running config getting output but have 150 routers but it triggered one notepad text it include all config output any chance to get trigger each host name with each text output. Regards, S.Manivannan On Friday, September 30, 2016 at 3:25:22 PM UTC-7, Jimbo

Re: [ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-10-03 Thread Salman Siddiqui
Does this solve your problem where all text was in same line and not different lines? On Mon, Oct 3, 2016 at 9:38 AM Jimbo wrote: > That works perfectly. Greatly appreciated > > > On Saturday, October 1, 2016 at 8:27:42 PM UTC-5, Peter Sprygada wrote: > > Hi James, > > This

Re: [ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-10-03 Thread Jimbo
That works perfectly. Greatly appreciated On Saturday, October 1, 2016 at 8:27:42 PM UTC-5, Peter Sprygada wrote: > > Hi James, > > This should accomplish what you are trying to do: > > https://gist.github.com/privateip/d0fd3c6459c5e1a4c1f9dceeb018b109 > > Peter > > > > On Fri, Sep 30, 2016 at

Re: [ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-10-02 Thread Salman Siddiqui
^^ Yes, this looks great. James, do tell us if this helps with your formatting as well. If not then you may have to run regex or sed replacing \n with \n. That is when all \n will actually be read as next line. On Sat, Oct 1, 2016 at 8:27 PM, Peter Sprygada wrote: > Hi

Re: [ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-10-01 Thread Peter Sprygada
Hi James, This should accomplish what you are trying to do: https://gist.github.com/privateip/d0fd3c6459c5e1a4c1f9dceeb018b109 Peter On Fri, Sep 30, 2016 at 8:44 PM, James Baird wrote: > I looked into going that route but the concern is that is only available > in 2.2

[ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-09-30 Thread James Baird
I looked into going that route but the concern is that is only available in 2.2 and I may have a hard time pushing the team to upgrade Ansoble to facilitate that change when we will be using this in production. -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Cisco IOS backup and write to file with timestamp

2016-09-30 Thread AnsiNoob
use iOS_config module instead. It has backup option in it and it creates backup dir in the folder from where you are running your playbook. Also, it adds hostname,date, time to backup file so you are all set. Below should work .. - name: take backup ios_config: backup: yes