On Wednesday, 26 September 2018 03.15.28 CEST budhac wrote:
> I am wondering if there is a way use Ansible to authenticate and execute a
> generic command payload. I have tried the shell, raw, and command modules
> but each with the similar error as above.
>
> ssh
us...@192.168.1.50 "showwsapi"
>
>
>
> Hopefully this makes sense.
>
> Any help or guidance would be appreciated.
You need to use the expect module.
--
Kai Stian Olstad