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.
pull/29127/head
Ricardo Carrillo Cruz 7 years ago committed by GitHub
parent 4d5b9a4a57
commit 2304706bd3

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

Loading…
Cancel
Save