[Network modules] Managed nodes requirements about python

Question

  • Could we use network modules(such a ios_command) on the network nodes that cannot execute python?

Purpose

  • I want to manage the network nodes(cisco) that do not have python by ansible playbook.

ex. “ios_command: show version”,
“using NAPALMhttps://github.com/napalm-automation/napalm”,
…etc

Details

Thanks,
Niko.

checkout this blog https://www.ansible.com/blog/coming-soon-networking-features-in-ansible-2.5 and https://docs.ansible.com/ansible/latest/network/index.html

They are all correct. Its just done different for networking.

Thanks a lot. I understood the differences and we don’t need python for managed nodes when we user network modules.

Just my curiosity, in case of Linux, what is the benefits of copying and executing python codes on Linux hosts?
It supposed that ansible can manage non-network nodes such a Linux hosts like network nodes(local execution), but is this reasonable idea?

2018年8月10日金曜日 19時53分27秒 UTC+9 Jonathan Lozada De La Matta:

as far as I know is to speed up the process instead of doing the work from another location, it copies the files locally and runs the scripts.

thanks again!
I appreciated your swift answer.

I would also add that the raw module works great for devices on which you don’t get a full environment.
For example, in my environment we have a EMC Data Domain.
When logged in, I don’t have a traditional shell, and the shell I use doesn’t expose Python to me… if it is present at all.

I use the ‘raw’ module to execute commands on it.

Thank you for your additional information.

I want to use return values of network modules to verify its status.

At first I planed to use raw module, but I find that return values of raw module is difficult to be parsed.
So I plan to use network modules mainly instead of raw module now.

2018年8月12日日曜日 11時29分36秒 UTC+9 Shawn Singh: