Set hostname to 'switch' on nxos_system teardown (#29126)
On setup we set it to 'switch', so teardown should be 'switch'. Also, using inventory_hostname breaks the test, since in our CI it's a long UUID string, which exceeds the 32 chars maximum for setting a hostname on NXOS.
This commit is contained in:
parent
4d5b9a4a57
commit
2304706bd3
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
- name: teardown
|
||||
nxos_config:
|
||||
lines: "hostname {{ inventory_hostname }}"
|
||||
lines: hostname switch
|
||||
match: none
|
||||
provider: "{{ connection }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue