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:
Ricardo Carrillo Cruz 2017-09-08 12:09:44 +02:00 committed by GitHub
parent 4d5b9a4a57
commit 2304706bd3

View file

@ -29,7 +29,7 @@
- name: teardown
nxos_config:
lines: "hostname {{ inventory_hostname }}"
lines: hostname switch
match: none
provider: "{{ connection }}"