"network_cli" connection plugin creates a pseudo terminal on the control 
node which establishes ssh connection with target host. 
So ideally it can be used to talk to any SSH-based target host. network_cli 
connection plugin relies on value of ansible_network_os
config variable to load the appropriate terminal and cliconf plugin for the 
target host.

Fore more details 
refer: 
https://github.com/ansible/community/blob/master/group-network/network_dev_network_cli.rst
 

On Monday, 25 February 2019 22:00:04 UTC+5:30, CodeWaffle wrote:
>
> Hi all:
>
> Not sure if I'm going about this the right way since I'm pretty new to 
> Ansible.
>
> Bu, can something like "network_cli" be used to drive simple to simple 
> embedded devices over SSH in an expect-like manner?  
>
> I've got a few devices that don't have a custom network_os or custom 
> Ansible module defined.  They also don't have a full shell and just expose 
> a simple command-line REPL.  
>
> Some simple pxssh script might work too, but it would seem nice to expose 
> these steps as first-class Ansible tasks too.
>
> If this is doable via Ansible in a nice manner, can someone point me to 
> the docs that cover this kind of use case?
>
> Thank you!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/046f1e52-5058-4509-b023-12aa742f48db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to