mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix junos_command test failure (#27627)
Add a loopback interface check instead of device specific management interface
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
junos_command:
|
||||
commands:
|
||||
- show version
|
||||
- show interfaces fxp0
|
||||
- show interfaces lo0
|
||||
format: xml
|
||||
wait_for:
|
||||
- "result[0].rpc-reply.software-information.host-name contains {{ inventory_hostname_short }}"
|
||||
- "result[1].rpc-reply.interface-information.physical-interface.name contains fxp0"
|
||||
- "result[1].rpc-reply.interface-information.physical-interface.name contains lo0"
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user