Issuing Junos Commands Using Ansible raw Module

26102016

If you want to issue something quick on a lot of devices, you don’t need to write a whole Ansible playbook to do that. In fact you don’t really need the Junos module installed.

Ansible expects there to be Python on the managed device. As you can read in this PacketPushers blog, it pushes the module out to the device and tries to execute it there. Junos is going to get on-box Python at some point, but right now that’s roadmap (or SOPD if you must).

Suppose you want to find out what version of software you have on a your lab device, here’s a quick way to do that.