Set hostname to 'switch' on nxos_config toplevel setup/teardown tasks (#29127)

Using inventory_hostname breaks in our CI, as the inventory_hostname
translates to a long UUID, exceeding the maximum length for a NXOS
hostname.
pull/21621/head
Ricardo Carrillo Cruz 7 years ago committed by GitHub
parent 2304706bd3
commit 8b6e3272f2

@ -3,7 +3,7 @@
- name: setup
nxos_config:
lines: hostname {{ inventory_hostname_short }}
lines: hostname switch
provider: "{{ connection }}"
match: none
@ -30,7 +30,7 @@
- name: teardown
nxos_config:
lines: hostname {{ inventory_hostname_short }}
lines: hostname switch
provider: "{{ connection }}"
match: none

Loading…
Cancel
Save