# Hosts file and ansible.cfg for Cisco IOS

**URL:** <https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273>\
**Category:** Ansible Project\
**Created:** [April 26, 2016, 8:41am UTC](https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273 "2016-04-26T08:41:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inigo\_Esteban\_Oleaga](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@Inigo\_Esteban\_Oleaga](https://forum.ansible.com/u/Inigo_Esteban_Oleaga)\
**Post date:** [April 26, 2016, 8:41am UTC](https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273/1 "2016-04-26T08:41:30Z")

</div>

Hi everyone,

I am completely new with Ansible and I haven’t been able yet to do nothing with my Cisco test switch. My Cisco switch is a C2960S with Cisco IOS Version 12.2(55) SE7. The switch has SSH server enabled. I have tried a lot of configuration files and many diferents ways of writing my host file but I haven’t achivied anything (no ping module, no raw module).

¿Can anybody propose my how to configure my ansible.cfg and “hosts” files?

Thank you in advance.

(If more info needed I will provide it)

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [April 27, 2016, 1:37am UTC](https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273/2 "2016-04-27T01:37:26Z")

</div>

Take a look here for an example… [https://gist.github.com/privateip/11b042e569585ee9248a](https://gist.github.com/privateip/11b042e569585ee9248a)
