Skip to content

Commit

Permalink
junos Use inventory_hostname_short (ansible#20061)
Browse files Browse the repository at this point in the history
Don't use hardcoded hostnames
  • Loading branch information
gundalow authored Jan 9, 2017
1 parent 8a8090e commit b8ee80a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- show interfaces fxp0
display: text
wait_for:
- "result[0] contains vsrx01"
- "result[0] contains {{ inventory_hostname_short }}"
- "result[1] contains fxp0"
provider: "{{ netconf }}"
register: result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- show interfaces fxp0
format: xml
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"
provider: "{{ netconf }}"
register: result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- show version
- show interfaces fxp0
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"
format: xml
provider: "{{ netconf }}"
Expand All @@ -25,7 +25,7 @@
- show version
- show interfaces fxp0
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"
format: xml
provider: "{{ netconf }}"
Expand Down

0 comments on commit b8ee80a

Please sign in to comment.