# Ansible raw module & Cisco WLC

**URL:** <https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769>\
**Category:** Ansible Project\
**Created:** [June 14, 2016, 8:39am UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769 "2016-06-14T08:39:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Vavra](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@David\_Vavra](https://forum.ansible.com/u/David_Vavra)\
**Post date:** [June 14, 2016, 8:39am UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/1 "2016-06-14T08:39:43Z")

</div>

Hi, have anyone been succesful with at least logging in to Cisco WLC device with Ansible? I’m not able to make it work, most probably because of extra (nonstandard) prompt for User:

(Cisco Controller)  
User: xxxxxxx  
Password:\*\*\*\*\*\*\*\*\*\*  
(Cisco Controller) \>

Thanks for any advice on this.

---

<div class="post-metadata">

**Author:** ![Christoph\_Wegener](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Christoph\_Wegener](https://forum.ansible.com/u/Christoph_Wegener)\
**Post date:** [June 14, 2016, 10:27am UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/2 "2016-06-14T10:27:27Z")

</div>

Have you tried using RSA key pairs instead of username/password?

---

<div class="post-metadata">

**Author:** ![David\_Vavra](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@David\_Vavra](https://forum.ansible.com/u/David_Vavra)\
**Post date:** [June 14, 2016, 10:34am UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/3 "2016-06-14T10:34:55Z")

</div>

I believe that authentication based on RSA key-pair cannot be used with Cisco WLC firmware. Or can be?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [June 14, 2016, 1:51pm UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/4 "2016-06-14T13:51:53Z")

</div>

This looks like a interactive console, you can't use raw module for that, you'll have to use the expect module.

---

<div class="post-metadata">

**Author:** ![David\_Vavra](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@David\_Vavra](https://forum.ansible.com/u/David_Vavra)\
**Post date:** [June 17, 2016, 7:47am UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/5 "2016-06-17T07:47:10Z")

</div>

Is it possible to use it even when there is no Python installed on the target device?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [June 17, 2016, 7:11pm UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/6 "2016-06-17T19:11:24Z")

</div>

Yes, just use deligate\_to, and deligate the task to a machine that has Python.

---

<div class="post-metadata">

**Author:** ![Christoph\_Wegener](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Christoph\_Wegener](https://forum.ansible.com/u/Christoph_Wegener)\
**Post date:** [June 21, 2016, 2:36pm UTC](https://forum.ansible.com/t/ansible-raw-module-cisco-wlc/21769/7 "2016-06-21T14:36:57Z")

</div>

I think you are correct.

Here’s a slightly related thread on this topic:  
[http://stackoverflow.com/questions/24762108/logging-into-a-cisco-wireless-controller-via-ssh](http://stackoverflow.com/questions/24762108/logging-into-a-cisco-wireless-controller-via-ssh)
