cli_command and python

24 views
Skip to first unread message

Mauricio Tavares

unread,
Oct 21, 2019, 10:34:00 AM10/21/19
to ansible...@googlegroups.com
Does the cli_command module require python on the remote host?

Kai Stian Olstad

unread,
Oct 21, 2019, 11:09:06 AM10/21/19
to ansible...@googlegroups.com
On 21.10.2019 16:33, Mauricio Tavares wrote:
> Does the cli_command module require python on the remote host?

No, it's for use with network devices and majority of them doesn't have Python.


--
Kai Stian Olstad

Mauricio Tavares

unread,
Oct 21, 2019, 11:18:09 AM10/21/19
to ansible...@googlegroups.com
On Mon, Oct 21, 2019 at 11:09 AM Kai Stian Olstad
<ansible-pr...@olstad.com> wrote:
>
> On 21.10.2019 16:33, Mauricio Tavares wrote:
> > Does the cli_command module require python on the remote host?
>
> No, it's for use with network devices and majority of them doesn't have Python.
>
How does it send the command? Does it look for a shell or sends
it in a expect-like fashion?

> --
> Kai Stian Olstad
>
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e18539bb-8bb1-568d-c6d5-8fee4b1a8432%40olstad.com.

Kai Stian Olstad

unread,
Oct 21, 2019, 11:22:27 AM10/21/19
to ansible...@googlegroups.com
On 21.10.2019 17:17, Mauricio Tavares wrote:
> On Mon, Oct 21, 2019 at 11:09 AM Kai Stian Olstad
> <ansible-pr...@olstad.com> wrote:
>>
>> On 21.10.2019 16:33, Mauricio Tavares wrote:
>>> Does the cli_command module require python on the remote host?
>>
>> No, it's for use with network devices and majority of them doesn't have Python.
>>
> How does it send the command? Does it look for a shell or sends
> it in a expect-like fashion?

It depends, I recommend reading the docs since it has all the information
https://docs.ansible.com/ansible/latest/network/index.html
https://docs.ansible.com/ansible/latest/network/getting_started/network_differences.html


--
Kai Stian Olstad

Mauricio Tavares

unread,
Oct 21, 2019, 11:33:37 AM10/21/19
to ansible...@googlegroups.com
On Mon, Oct 21, 2019 at 11:22 AM Kai Stian Olstad
<ansible-pr...@olstad.com> wrote:
>
> On 21.10.2019 17:17, Mauricio Tavares wrote:
> > On Mon, Oct 21, 2019 at 11:09 AM Kai Stian Olstad
> > <ansible-pr...@olstad.com> wrote:
> >>
> >> On 21.10.2019 16:33, Mauricio Tavares wrote:
> >>> Does the cli_command module require python on the remote host?
> >>
> >> No, it's for use with network devices and majority of them doesn't have Python.
> >>
> > How does it send the command? Does it look for a shell or sends
> > it in a expect-like fashion?
>
> It depends, I recommend reading the docs since it has all the information
> https://docs.ansible.com/ansible/latest/network/index.html
> https://docs.ansible.com/ansible/latest/network/getting_started/network_differences.html
>
And that explains why what I am trying to do does not work.

Thanks!

> --
> Kai Stian Olstad
>
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/299f3d21-d863-eeca-73d8-fb3304b274e3%40olstad.com.
Reply all
Reply to author
Forward
0 new messages