Ansible raw module & Cisco WLC

397 views
Skip to first unread message

David Vávra

unread,
Jun 14, 2016, 4:39:43 AM6/14/16
to Ansible Project
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.

--
DV


Christoph Wegener

unread,
Jun 14, 2016, 6:27:28 AM6/14/16
to Ansible Project
Have you tried using RSA key pairs instead of username/password?

David Vávra

unread,
Jun 14, 2016, 6:35:03 AM6/14/16
to ansible...@googlegroups.com
I believe that authentication based on RSA key-pair cannot be used with Cisco WLC firmware. Or can be?

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/xpHZ7JFEhw4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c847dffd-6f4c-49a7-813f-e5f652763cfc%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kai Stian Olstad

unread,
Jun 14, 2016, 9:52:21 AM6/14/16
to ansible...@googlegroups.com
On 14. juni 2016 10:39, David Vávra wrote:
> 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) >

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

--
Kai Stian Olstad

David Vávra

unread,
Jun 17, 2016, 3:47:16 AM6/17/16
to ansible...@googlegroups.com
Is it possible to use it even when there is no Python installed on the target device?

--
 

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/xpHZ7JFEhw4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Kai Stian Olstad

unread,
Jun 17, 2016, 3:11:36 PM6/17/16
to ansible...@googlegroups.com
On 17. juni 2016 09:47, David Vávra wrote:
> Is it possible to use it even when there is no Python installed on the
> target device?

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

--
Kai Stian Olstad

Christoph Wegener

unread,
Jun 21, 2016, 10:36:58 AM6/21/16
to Ansible Project
I think you are correct.

Here's a slightly related thread on this topic:
Reply all
Reply to author
Forward
0 new messages