mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix junos_command test failure (#27627)
Add a loopback interface check instead of device specific management interface
This commit is contained in:
parent
505f3bfcac
commit
94748e1728
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@
|
||||||
junos_command:
|
junos_command:
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- show version
|
||||||
- show interfaces fxp0
|
- show interfaces lo0
|
||||||
format: xml
|
format: xml
|
||||||
wait_for:
|
wait_for:
|
||||||
- "result[0].rpc-reply.software-information.host-name contains {{ inventory_hostname_short }}"
|
- "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 }}"
|
provider: "{{ netconf }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue