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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/976d2c71-32ad-41a6-8ac5-49425211950an%40googlegroups.com.