# cisco ios\_config

**URL:** <https://forum.ansible.com/t/cisco-ios-config/34123>\
**Category:** Ansible Project\
**Created:** [October 28, 2020, 9:22pm UTC](https://forum.ansible.com/t/cisco-ios-config/34123 "2020-10-28T21:22:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![william.dossett](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Post date:** [October 28, 2020, 9:22pm UTC](https://forum.ansible.com/t/cisco-ios-config/34123/1 "2020-10-28T21:22:35Z")

</div>

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
