# IOS\_template - option to ignore errors

**URL:** <https://forum.ansible.com/t/ios-template-option-to-ignore-errors/21866>\
**Category:** Ansible Project\
**Created:** [June 27, 2016, 2:01pm UTC](https://forum.ansible.com/t/ios-template-option-to-ignore-errors/21866 "2016-06-27T14:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmirC](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@AmirC](https://forum.ansible.com/u/AmirC)\
**Post date:** [June 27, 2016, 2:01pm UTC](https://forum.ansible.com/t/ios-template-option-to-ignore-errors/21866/1 "2016-06-27T14:01:01Z")

</div>

Hi,

I am currently testing the functionality of the Ansible network configuration and the scenario i have is that i want to run a generic setup configuration against a number of switches. The configuration may contain syntax that one of the switches does not like - its not important if the command fails (as the particular command varies per switch version) and i would like the command failure to be ignored.

I cannot seem to get this working with the “IOS\_template” module which always errors when an incorrect input is detected. I have tried tinkering with the Shell.py and IOS.py files without luck.

I understand i can just cater my templates and variables per switch version/model but maintaining that would be a nightmare.

Does anyone have any suggestions on how this can be achieved?

Thanks,

Amir
