1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Ricardo Carrillo Cruz 2017-09-08 12:13:35 +02:00 committed by GitHub
parent 2304706bd3
commit 8b6e3272f2

View file

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