Hi,
I am trying to get some experience using the cisco ios_config module. I want to get a diff between the running config and a master config.
playbook snippet is:
tasks:
-
name: Check running config against master config
ios_config:
diff_against: intended
intended_config: “{{ lookup(‘file’, ‘master.cfg’) }}”
register: result -
debug:
var: result
but all I get is:
TASK [Check running config against master config] ******************************
13:53:37
7
ok: [192.168.10.250]
8
9
TASK [debug] *******************************************************************
13:53:40
10
ok: [192.168.10.250] => {
11
“result”: {
12
“ansible_facts”: {
13
“discovered_interpreter_python”: “/usr/libexec/platform-python”
The running config certainly doesn’t match the master config that I am providing - I know I am getting logged in and escalated to enable, I can do a show ver and run ios_command
I’ve been trying to do this on and off for days and trying different things, but I eventually always just end up with this.
Thanks