# ioc\_template Module Failure

**URL:** <https://forum.ansible.com/t/ioc-template-module-failure/23394>\
**Category:** Ansible Project\
**Created:** [January 6, 2017, 6:44am UTC](https://forum.ansible.com/t/ioc-template-module-failure/23394 "2017-01-06T06:44:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Gampawar](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Shubham\_Gampawar](https://forum.ansible.com/u/Shubham_Gampawar)\
**Post date:** [January 6, 2017, 6:44am UTC](https://forum.ansible.com/t/ioc-template-module-failure/23394/1 "2017-01-06T06:44:14Z")

</div>

Hello,

I am using Ansible 2.2 to automate Cisco 2800 router in that I am generating configurations using Jinja2 templates.It is generating configuration file to respective destination folder. when pushing that configurations to my router I am getting following error:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: cnlabs(config)#  
fatal: [192.168.3.65]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_HV\_5qu/ansible\_module\_ios\_template.py", line 174, in \n main()\n File "/tmp/ansible\_HV\_5qu/ansible\_module\_ios\_template.py", line 165, in main\n response = module.config(commands)\n File "/tmp/ansible\_HV\_5qu/ansible\_modlib.zip/ansible/module\_utils/netcfg.py", line 54, in **call** \n File "/tmp/ansible\_HV\_5qu/ansible\_modlib.zip/ansible/module\_utils/ios.py", line 194, in configure\n File "/tmp/ansible\_HV\_5qu/ansible\_modlib.zip/ansible/module\_utils/shell.py", line 250, in execute\nansible.module\_utils.network.NetworkError: matched error in response: configure terminal\r\n ^\r\n% Invalid input detected at ‘^’ marker.\r\n\r\ncnlabs(config)#\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”}

This are the configurations which are generated in my shubham.j2 file

configure terminal  
interface fastEthernet 0/0  
ip address 1.1.1.1 255.255.255.0  
no shutdown  
exit

here I am trying to push the above IP Address to FastEthernet 0/0 port of my cisco 2800 router. Is that error is because of module failure ?, Can anyone help me to resolve this error .
