mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
junos Use inventory_hostname_short (#20061)
Don't use hardcoded hostnames
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
- show interfaces fxp0
|
- show interfaces fxp0
|
||||||
display: text
|
display: text
|
||||||
wait_for:
|
wait_for:
|
||||||
- "result[0] contains vsrx01"
|
- "result[0] contains {{ inventory_hostname_short }}"
|
||||||
- "result[1] contains fxp0"
|
- "result[1] contains fxp0"
|
||||||
provider: "{{ netconf }}"
|
provider: "{{ netconf }}"
|
||||||
register: result
|
register: result
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
- show interfaces fxp0
|
- show interfaces fxp0
|
||||||
format: xml
|
format: xml
|
||||||
wait_for:
|
wait_for:
|
||||||
- "result[0].software-information.host-name contains vsrx01"
|
- "result[0].software-information.host-name contains {{ inventory_hostname_short }}"
|
||||||
- "result[1].interface-information.physical-interface.name contains fxp0"
|
- "result[1].interface-information.physical-interface.name contains fxp0"
|
||||||
provider: "{{ netconf }}"
|
provider: "{{ netconf }}"
|
||||||
register: result
|
register: result
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
- show version
|
- show version
|
||||||
- show interfaces fxp0
|
- show interfaces fxp0
|
||||||
wait_for:
|
wait_for:
|
||||||
- "result[0].software-information.host-name == vsrx01"
|
- "result[0].software-information.host-name == {{ inventory_hostname_short }}"
|
||||||
- "result[1].interface-information.physical-interface.name == fxp0"
|
- "result[1].interface-information.physical-interface.name == fxp0"
|
||||||
format: xml
|
format: xml
|
||||||
provider: "{{ netconf }}"
|
provider: "{{ netconf }}"
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
- show version
|
- show version
|
||||||
- show interfaces fxp0
|
- show interfaces fxp0
|
||||||
wait_for:
|
wait_for:
|
||||||
- "result[0].software-information.host-name eq vsrx01"
|
- "result[0].software-information.host-name eq {{ inventory_hostname_short }}"
|
||||||
- "result[1].interface-information.physical-interface.name eq fxp0"
|
- "result[1].interface-information.physical-interface.name eq fxp0"
|
||||||
format: xml
|
format: xml
|
||||||
provider: "{{ netconf }}"
|
provider: "{{ netconf }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user