- name: run a set of commands
junos_command:
commands: ['show version', 'show ip route']
- name: run a command with a conditional applied to the second command
junos_command:
commands:
- show version
- show interfaces fxp0
waitfor:
- "result[1].interface-information.physical-interface.name eq fxp0"
- name: collect interface information using rpc
junos_command:
rpcs:
- "get_interface_information interface=em0 media=True"
- "get_interface_information interface=fxp0 media=True"
For me, I can't get the JunOS modules to work. If I try a local connection like Juniper's role was I get the following even though I have paramiko installed:
if I try paramiko / default connection I get:
Any tips on how to use these in a role / playbook rather than just the task?