2018-03-09 15:03:33 +01:00
|
|
|
---
|
2019-09-11 16:10:14 +02:00
|
|
|
# Some of the tests in this suite change the hostname to switch.
|
|
|
|
# This block/always ensures the hostname gets changed back to
|
|
|
|
# the correct name.
|
|
|
|
- block:
|
|
|
|
- { include: cli.yaml, tags: ['cli'] }
|
|
|
|
- { include: nxapi.yaml, tags: ['nxapi'] }
|
|
|
|
|
|
|
|
always:
|
|
|
|
- name: "Change hostname back to {{ inventory_hostname_short }}"
|
|
|
|
nxos_config:
|
|
|
|
lines:
|
|
|
|
- "hostname {{ inventory_hostname_short }}"
|
|
|
|
match: none
|