Hi Ganesh: I have indeed seen the docs you point to below, but the next question remains: What is the correct value for "ansible_network_os"?
The docs seems to list only real gear like Cisco, etc. Is there some base or generic option to choose? A quick look at the source code did not seem to indicate anything obvious either. Thank you! ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, February 26, 2019 11:51 PM, Ganesh Nalawade <[email protected]> wrote: > "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/qAPfU7XrMXGTpZqsYrUu4rRysqel1ZbtALbnnucwaxBr-iroXDtD0ClaJfhX8-RmW07x-eCCwW7TE7V8IVowtSTz3oA3U_iAoTrF6wXzODc%3D%40protonmail.com. For more options, visit https://groups.google.com/d/optout.
