[ansible-project] ansible check and diff mode not working

2020-07-14 Thread Shyam Sunder
Hi, I was going thru this post ( https://blog.networktocode.com/post/generating-diff-with-ansible/) where its mentioned that we can use check and diff mode together. I am trying to use that for gold config audit (audit pre decided config against what is present on device) for Cisco and Extre

Re: [ansible-project] ansible check and diff mode not working

2020-07-15 Thread Shyam Sunder
in running config and your cfg file. > > "updates": [ > "configure ntp server add x.x.x.x" > ], > > I don't see any issue with the output. Did you try changing the ntp > setting on the device yourself and check out the differenc

Re: [ansible-project] ansible check and diff mode not working

2020-07-15 Thread Shyam Sunder
mple exits online. Somehow its not working for me. I thought someone could guide with this. -Shyam On Wednesday, July 15, 2020 at 2:00:45 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 7/15/20 10:08 AM, Shyam Sunder wrote: > > Thanks for reply. Yes below is my intended config -

[ansible-project] set object property using set_fact

2020-02-27 Thread Shyam Sunder
Hi, I am new to Ansible an trying to achieve this below. Is this possible to set a dictionary property using key in Ansible. vars: mydict: keyA: path: ‘path of device A’ error_files: [] keyB: path: ‘path of device B’ error_files: []

[ansible-project] Re: set object property using set_fact

2020-02-27 Thread Shyam Sunder
at 2:27:18 PM UTC+5:30, Shyam Sunder wrote: > > Hi, > > I am new to Ansible an trying to achieve this below. Is this possible to > set a dictionary property using key in Ansible. > > vars: > mydict: >keyA: > path: ‘path of device A’ &g

[ansible-project] Ansible block + with_together

2019-07-22 Thread Shyam Sunder
Hi There, I am new with Ansible and still figuring out how to use with_together with block. UseCase: Trying to compare configuration of device A and device B. Below is a snippet from my script. - hosts: pairB connection: network_cli name: script to audit HSRP config of pair B device ta