using ansible when sftp is not available

Hi all

We are looking into ansible and one of the things we would like to do is issue a few commands to some storage appliances that we have. They are looked down and as such we can not access sftp or even scp just ssh into their custom command line interface.

I’m testing this and I’ve managed to get raw module working to retrieve information, as below:

`

Did you ever find a solution to this? I’m having the same issue. Does the expect module really generate a python file, send it to the remote host, and execute it there to pull this off? Can’t it just execute like an expect script locally?

I'm having the same issue. Does the
expect module really generate a python file, send it to the remote host,
and execute it there to pull this off?

Yes, it does if you don't tell it not to do it.

Can't it just execute like an expect script locally?

Yes, just use "delegate_to: localhost" on the task and expect will run on the Ansible controller host.