cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
514
Views
0
Helpful
1
Replies

UCSPE with Ansible

TMJAMES
Level 1
Level 1

Hi all,

 

Can anyone confirm that they can properly use ansible to automate tasks within UCSPE?

 

I have tried a few versions of UCSPE and an ansible control node on both ubuntu and cygwin and the behaviour is the same in all cases. UCSPE is properly started and I can use either the GUI with admin/admin or ucspe/ucspe, or SSH in a terminal to the VIP address using ucspe/ucspe then "c" to login to the CLI shell. So far so good. 

The problems start when I try to use ansible and SSH seems to hang (using ucspe/ucspe, manual password entry with sshpass) or fail altogether (when trying to use an SSH key). In fact, I can't SSH from the command line using an SSH key at all, either from ansible or directly.

So my questions are

1) is there some special SSH setup/config to perform within ansible for connections to UCSPE (maybe to use paramiko, or to set the value of ControlMaster, for instance)? I think I've tried them all but maybe I just haven't found the right combo yet.

2) should an SSH key setup within UCSPE be honoured or is it only possible to logon to UCSPE with a password?

 

Thanks,

 

Tim

 

 

1 Reply 1

TMJAMES
Level 1
Level 1

I can answer my own question now - I was able to make Ansible->UCSPE work properly by clearing my environment variables for https_proxy and http_proxy, which I had previously set up so that I could pull down from github etc. For some reason with these values set, to a valid proxy, the SSH connection would not complete even though it was to a local target. Maybe this may help others in the future.

Review Cisco Networking for a $25 gift card

Review Cisco Networking for a $25 gift card