[ansible-project] Re: how do I use ios_config to change configuration to default?

2017-05-08 Thread Rama Krishna
Use Jinja2 template with ios_config, and set the module parameter match: line, which will do the job as you seek. cheers On Wednesday, April 26, 2017 at 6:39:48 PM UTC+5:30, John Z wrote: > > How do I use ios_config to delete configuration but only if it is present? > I want ios_config to

[ansible-project] Invoke Jinja2 template in a custom module

2017-05-08 Thread Rama Krishna
Hi Fellas, I'm trying to invoke jinja2 template to a custom module, but it end up i get only a string of file name instead of calling ansible container to get the jinja2 output. On debug i see, when the default modules call jinja2 template it automatically parses, but on custom modules it's

[ansible-project] Re: junos_command

2017-05-08 Thread Rama Krishna
Based on the error message, authentication parameters are not passed properly to the module. I see it's using netconf; so i think you have used connection method right.. Cheers On Wednesday, April 26, 2017 at 1:01:13 AM UTC+5:30, Asif Iqbal wrote: > > I am failing to make junos_command